Search code examples
androidresolution

multiple screen support in android


I am working on a project and i have tested it on nexus one. its working there properly but I want that my project should be compatible with all screen sizes. How to do this?? I have given

<supports-screens  android:smallScreens="true"/>
  <supports-screens  android:normalScreens="true"/>
  <supports-screens android:largeScreens="true"/>
  <supports-screens android:anyDensity="true"/>
  <supports-screens android:resizeable="true"
  android:anyDensity="true" />

parameters in the androidmainfest.xml


Solution

  • http://developer.android.com/guide/practices/screens_support.html

    You have to add different folder for different layout in res folder --> hdpi,mdpi,ldpi and for large screens you xhdpi(for Tablet) and large-hdpi or xlarge (for NXzoom). Also set Images and text size different in different layout as per screensize...