Android portrait and landscape layouts

androidlandscapelayoutportrait

I have the following layout:

enter image description here

I need the following layout in portrait mode:

enter image description here

But instead of that I obtain the following one that I don't know how to modify it:

enter image description here

How can I do that?

Best Answer

Fastest way for Android Studio 3.x.x

1.Go to the design tab of the activity layout

2.At the top you should press on the orientation for preview button, there is a option to create a landscape layout (check image), a new folder will be created as your xml layout file for that particular orientation

enter image description here