I want to support 540x960 screen resolution in my android application. How can I support this screen? Any suggestion will be appreciated.
Asked
Active
Viewed 2,107 times
-1
-
1-1 not really sure what your question is - you can't make layout work on this resolution, you need to know how to detect that specific resolution? – Elemental Sep 21 '12 at 08:08
-
res/layout-w540dp-h960dp/any layout which you need put in side this folder – Chirag Sep 21 '12 at 08:09
-
This is the solution that works: http://stackoverflow.com/a/10931395 – user2116185 Feb 27 '13 at 16:13
3 Answers
1
You don't develop to specific resolutions on Android. You write layouts which automatically scale to different sizes and aspect ratios. Make use of classes such as RelativeLayout
to define how elements should be placed relative to each other, and allow them to adapt to the available space. You can also use Fragments to design for different orientations and physical sizes (e.g. tablet vs phone).
Take a look at this document: http://developer.android.com/guide/practices/screens_support.html

Glitch
- 2,785
- 1
- 27
- 50
1
put inside AndroidManifest.xml
<supports-screens android:anyDensity="true"></supports-screens>
Or take a look bellow links.
Android Multiscreen Support in android : 540x960 issue
OR
How to support all the different resolutions of android products