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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…