For detail, please refer to Android Developer Guide.
To summarize, you must declare each supporting screen sizes in your AndroidManifest.xml
. For example, you have to include the following:
<supports-screens android:resizeable=["true"| "false"]
android:smallScreens=["true" | "false"]
android:normalScreens=["true" | "false"]
android:largeScreens=["true" | "false"]
android:xlargeScreens=["true" | "false"]
android:anyDensity=["true" | "false"]
android:requiresSmallestWidthDp="integer"
android:compatibleWidthLimitDp="integer"
android:largestWidthLimitDp="integer"/>
To support 240*320, you must do the following:
1: In AndroidManifest.xml
, include
<supports-screens android:smallScreens="true" />
2: Create different layout-small
folder:
res/layout/layout-small/
3: Create drawable-ldpi
folder (you already did):
res/drawable-ldpi/