Good day. I write Widget for android and ran into a problem. The widget looks more or less the same on all devices, except for the resolution of 540px x 960px. For this permission, you need to create a separate resource values, which will store an excellent dimension file. If I create values-w360dp, then all devices with a higher resolution than 540px x 960px begin to refer to it. What should not happen How to make a separate resource for the resolution of 540px x 960px?
1 answer
- No, that doesn't work. Even if I write values-w360dp-h640dp. Where 360dp = 540px, and 640 dp = 960px. That this resource is not loaded. If I leave values-w360dp, then all devices with a width of more than 360dp begin to use it. I also need this resource to be loaded only for resolution 540px x 960px - Michael
- in general, it makes sense to look at your layout and see what you specifically do not like there. Use wrap_content, match_parent. - TimurVI
|