Layout Folder Issue In Android
In my app there are three layout folder. 1)layout(for 480x800 resolution with **hdpi**) 2)layout-large(for 1024x600 resolution with **mdpi**) 3)layout-xlarge(for 1280x800 resoluti
Solution 1:
Samsung Galaxy S3
has same issue..
Here is sample logic of achieve for Samsung Galaxy S3 device
, you can also try for your device.
for example to find the Samsung Galaxy S3 dp to suffix to drawable-sw?
dp With reference of DP Calculation, If you want to support your layout or drawable to S3 then the calculation says
px= Device's width = 720 dpi= Device's density= 320
formula given
px = dp * (dpi / 160)
interchanging formula because we have px's value
dp = px / (dpi / 160)
now putting value,
dp= 720 / (320/160);
dp=360.
so drawable-sw360dp will do the job
Check this Answer for more detail.
Post a Comment for "Layout Folder Issue In Android"