Problem with tablets for Android Asus tablet on seven inches hdpi

Develops an application with support for multiple screens. Before starting development, I read the developer's site to support multiple screens. I am currently having a problem with the density of the device. I tested my application on Samsung Tab 10inch, Toshiba Regza, Customized 10inch tab, Samsung tab3, Lenova tabs. The remaining references here are mdpi devices. So I used the mock-sw-720 for 10-inch tablets and the mock-sw-600 for 7-inch tablets. When I tried to launch on the ASUS MeMO Pad HD 7inch, which is a high-density device, it did not accept the layout from any of the specified layout folders. ASUS MeMO Pad HD 7'c confoguration is a 7-inch WXGA (1280x800) LED backlit screen. Please help me with the exact folder structure given the density of the device.My head hurts from one week. Please help me. will be appreciated

+4
source share
1 answer

I figured this out by pointing the hdpi prefix to the layout-sw600dp folder, for example layout-sw600dp-hdpi. In fact, my layouts contain complex designs and images, so if I did not specify the name of the layout folder as mentioned above, then it will accept the layout from the layout-sw600dp without a density prefix. Then, to avoid the fact that I used the hdpi prefix for the layout folder and the same thing as in the drop down folder.

+3
source

Source: https://habr.com/ru/post/1526582/


All Articles