Friday, March 22, 2013

When Landscape view is used then how can change the layout in landscape view?


1. Create new folder in res/layout-land.
2. Make two layout file with same name main.xml
3. Now place one layout file which is for landscape view in res/layout-land/main.xml


Now when you change view of device that can be take layout automatically from the layout.


No comments:

Post a Comment