Dear StackOverflow users,
I found a of information about what Drawables to use (HDPI, MDPI, LDPI) on StackOverflow. Currently I am using only the HDPI folder. My ImageButtons are 72×72. According to Eclipse, looking at the Graphical Layout of the .XML file, the smallest screen (2.7 IN QVGA) can show all buttons.
If I am correct, Android will scale down the images if someone with MDPI or LDPI screen uses the APP, right? Is there also a setting wherein all different DPI sizes use the 72×72 image? And should I specifically define in the Android Manifest what DPI’s are supported? Or when I leave this empty, will it support all possible devices?
Thanks in advance for any answers!
(Maybe (parts) of these questions are already answered, but there is so much stuff found by google regarding this)
EDIT:
I found this for my android manifest file. Would this make it work on all devices? And scale down the HDPI images?:
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"
android:resizeable="true" />
Yes.
It should have that effect if you put them in
res/drawable/rather thanres/drawable-hdpi/.If you wish to preclude your application from appearing in the Market for certain densities, you can use
<compatible-screens>for that. Ideally, you have your app work on all densities.It will allow your app to be installed on all devices. Whether or not it works is up to you. Please remove the
android:resizeableattribute (deprecated). You can also removeandroid:anyDensity(it istrueby default).Yes, it should scale down the HDPI images. It would do that even without this element.