Orientation adaptation

Is there a way to automatically change the size of UI widgets so that they adapt to portrait/landscape? So if the user is in portrait the widgets scale themselves accordingly to fit the screen.