Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear CodeProject Developer!
Please, give me help, when i change the skin (like HVGA, QVGA) in android virtual device, then layout is changed (like image shift to left etc.). what is this,i cann't understand, how to setup this.
Posted
Updated 10-Aug-11 19:06pm
v2

1 solution

HVGA, QVGA etc refer to the resolution of the device you are running it on. Depending on how you set up your layouts (if you are using absoluteLayouts etc) this can cause them to look slightly different on different resolutions.

Create a different layout for small, normal and large screens by adding folders layout-large, and layout-small etc and adding views with the same name within each of these folders. Android will then find the most appropriate layout to inflate for the device that the application is currently running on.

There are some useful articles here:
http://blog.stylingandroid.com/archives/category/layouts[^]

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900