Creating an Alternate Layout and Resources
Android provides an alternate layouts and resources based upon the devices used.
If we develop any apps in portrait form then it may not look good in landscape mood.
Here i am gonna develop an alternate layout for landscape mood.
Then lets start.
I create a new project named "Alternate"
Then i go to XML file and drag a button, a textview, togglebutton and a imageview.
Here is portrait view
![]() |
| Layout in Protrait View |
When i switch this layout to landscape it looks like this and it is not good.
![]() |
| Layout view in Landscape mode |

