Issue
I have to set specific "values" and "layout" folders that work only for devices with the same screen specs of the Motorola TC55.
What qualifier should I write?
Here are the screen of the Motorola TC55 display info:
UPDATE: following this site I have done the following formula: 480 / (240 / 160) = 320
so I have tried the folders: values-sw320dp and values-w320dp.
They work correctely with the Motorola TC55, but the problem is that it also affects the Samsung Note 3 device.
The formula for the Note 3 is: 1080 / (480 / 160) = 360
So why it also affects device with different Density-independent pixel ?
Solution
I've done a quick test regarding the layout, starting from the information available in Android documentation.
In my case I've worked with a TC55 (320x533 dp) and a TC70 (360x640 dp).
I got to use a specific different layout in the two devices using the folder specifier:
layout-sw320dp
layout-sw360dp
The first one for the TC55 and the second one used by the TC70.
Answered By - pfmaggi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.