I’m working on an Android app and having issues with layout qualifiers for a specific tablet device.
I’m trying to create different layouts for various screen configurations. My app needs to handle three different device categories:
- Large tablets (like 10-inch devices with 1024x800 resolution)
- Standard MDPI phones with smaller screens
- Long HDPI phones (similar to older flagship devices)
The problem is that my tablet device keeps using the layout meant for long HDPI phones instead of the tablet-specific layout. I’ve tried several qualifier combinations but nothing seems to work correctly.
I expected the layout-xlarge
qualifier to handle the tablet since it has a 10-inch screen, but the emulator ignores this folder completely. When I use layout-xlarge-hdpi
, it still doesn’t work as expected.
The tablet currently uses my layout-hdpi
folder, but that’s meant for other devices. I also tried layout-hdpi-long
but this affects other long screen devices too.
How can I create a qualifier that specifically targets tablets while keeping separate layouts for long HDPI phones?