Today we are going to see about, How to use different layout when screen orientationchanges from Portrait to Landscape or Landscape to Portrait.
For example :-
In portrait mode , the option page button will looks like nice when buttons are in one by one position.
But in landscape if we use the same process we need to have scrollview to see all the option button in the page.
To overcome this problem here is a easy solution.
In your res folder create two folders for Landscape 1) drawable-land 2) layout-land
drawable-land folder images is used when the phone orientation in landscape mode.
layout-land folder layout files is used when the phone orientation in landscape mode.
Here we are going to see about how to Rotate Android emulator…Its actually very simple.
Just lock the numberLock in your Keyboard.
Open your Emulator and press the number 7 followed by 9.
Now your emulator will be rotated to the opposite direction.