Jia Tse Jia Tse - 4 months ago 8
Android Question

Android Wear resource qualifiers

I'm developing for android wear, and instead of using 2 different layouts (one for rect, and one for round), can I just use resource qualifiers instead?

For example, I have a layout file: activity_main.xml. It references pizza.png. can I make it so that the round watch (320x320) pulls the image from drawable-w320dp while the rectangle watch (280x280) pulls the image from drawable-w280dp?



No, I don't think so. There are no specific qualifiers for form factor (such as -round or -square) and the screen size in pixels is not the same across all square devices. For example, the Samsung Gear Live is 320x320 too.

Moreover, these values are in pixels, not dp as in your example, but this is a minor point.