Professional Documents
Culture Documents
WVGA
QVGA
WVGA
QVGA
WVGA
QVGA
QVGA
HVGA
WVGA
QVGA
HVGA
WVGA
QVGA
HVGA
WVGA
$resource_type-$qualifier1-$qualifier2-...
drawable-normal-hdpi
drawable-notlong-port-normal-ldpi
drawable-fr-rCA-large-long-land-mdpi-finger-keyssoft
$resource_type-$qualifier1-$qualifier2-...
drawable-normal-hdpi-v4
drawable-notlong-port-normal-ldpi-v4
drawable-fr-rCA-large-long-land-mdpi-finger-v3
• Minimize of complexity
<uses-sdk android:minSdkVersion=”3”
android:targetSdkVersion=”4” >
<supports-screens
android:smallScreens=”true”
android:normalScreens=”true”
android:largeScreens=”true”
android:anyDensity=”true” />
</uses-sdk>
160dpi
Tuesday, October 27, 2009
Considering size
import android.util.DisplayMetrics;
...
private int dipsToPixels(int dipValue) {
DisplayMetrics thisDisplay =
new DisplayMetrics();
Float dipSize = new Float(
dipValue * thisDisplay.density);
return dipSize.intValue();
}
• Always happens
• Always happens
• Always happens