Search code examples
androidandroid-layoutandroid-screenandroid-screen-support

support 540x960 resolution in my android application


I want to support 540x960 screen resolution in my android application. How can I support this screen? Any suggestion will be appreciated.


Solution

  • 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