How to Support Multiple Screens in Android without the need to Provide different bitmap drawables for different screen densities -
How to Support Multiple Screens in Android without the need to Provide different bitmap drawables for different screen densities -
i need run application on multiple devices diffrent specs. i'm trying work on two: samsung galaxy tab p100 , galaxy tab 7.0 plus differnces i'm care dpi,the first device 240 dpi sec 170 , version first runs 2.2 later 3.2 first set images on hdpi folder images on 7.0 plus smaller , ugly copied them mdpi folder works fine double size of apk. is there way create android auto fit images without need re-create images?
if want images fine in either device have provide same images mdpi , hpdi @ differente resolution (see alternative drawables).
however if set images in mdpi directory only, android scale theme hpdi screens. remember have utilize dp , not px dimensions (see density independence).
you can interested in how android pre-scale , auto-scale resources (see additional density considerations). if want forcefulness auto-scale, can add together line in androidmanifest.xml:
<supports-screens android:anydensity="false"/> android
Comments
Post a Comment