Android resourse folders swXXXdp for 5 inch phones -
i want distinguish phones ~5 inch , higher displays 4 inch 480x800 in res/values folder
how can differentiate ~5 inch displays? should use trick, should got instead of xxx?
values-swxxxdp?
especially trying differentiate galaxy s 3 , galaxy s 4 others. should consider?
s3:
dpi: 306 res: 1280x720 screen: 4.8" 720 / (306/160) = 720 / 1.9125 = 376.47 dp
s4:
dpi: 441 res: 1920x1080 screen: 5.0" 1080 / (441/160) = 1080 / 2.75625 = 391.8367 dp
so there small difference between s3 , s4. if want distinguish layouts these devices, use sw376dp s3 , sw390dp s4. make note other 5" phones different.
Comments
Post a Comment