Senior Sri Lankan lawmaker Dinesh Gunawardena was sworn in on Friday as the new prime minister, his office said, a day after the swearing-in of a new president as the Indian Ocean nation grapples with its worst economic crisis in decades.