Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANDROID : Multiple resolution

I am developing an app that support multiple resolutions. I have been through the http://developer.android.com/guide/practices/screens_support.html but couldn't find the solution.

The resolutions are :

1) 320x480 (Samsung Galaxy ACE)

2) 480x800 (Samsung Nexus S)

3) 600x1024 (Samsung Galaxy Tab 7in)

How do I classify the folder names for Layout and Drawable as well?

Currently I am using:-

For 320x480 : layout-mdpi, drawable-mdpi

For 480x800 : layout-hdpi, drawable-hdpi

For 600x1024 : layout-large, drawable-large

Only the 320x480 resolution is working fine.

Please help.

like image 721
Me-an-Droid Avatar asked Mar 05 '26 10:03

Me-an-Droid


1 Answers

Instead using xhdpi, hdpi, mdpi, sdpi try to use small, normal, large, xlarge.

Every device has it own density, sometimes large device having less density and vice versa, So just try to use drawble(outside category), drawble-small, drawble-normal, drawble-large and layout(outside category), layout-small, layout-normal, layout-large.

like image 188
Mohammed Azharuddin Shaikh Avatar answered Mar 07 '26 01:03

Mohammed Azharuddin Shaikh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!