Android Portrait & Landscape Different Layouts
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.
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.
Uninstall/Delete an appliaction from Emulator in Android
Its simple to uninstall or delete an application from the Emulator in Android.
Follow the below mentioned steps to uninstall an application from the Emulator
- After Starting the Emulator, Press Menu Button —-> Settings (See below image)
- Go to Settings —-> Applications
- Then go to Applications —-> Manage Applications
- From that Manage Application, select the application you need to manage. (In the below image, we have selected the Spinner Example Application to manage).
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.
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.
No comments:
Post a Comment