I have created a layout for an activity. The layout contains some image buttons and text views. The problem is that when I am setting the orientation of my device to portrai
- It seems you screen size
is creating a problem here.
- You will have to create another folder under res
directory as layout-land
, and in it create a .xml
file just like you did in layout
folder, and make it look the way you want it in landscape mode
.
- When your app goes into landscape
mode, automatically this .xml
file will be selected (ie from the layout-land) folder.