Reputation: 918
I know I can set a folder called layout-small, normal, etc.. for different screen sizes, but I want to set an specific folder for a tablet 9.7". Is it possible??
Upvotes: 1
Views: 384
Reputation: 11337
Referring to the DOC you can use layout-sw<dp>
.
sw means "smallest width", and indicates the "shortest dimension of the available screen area". Usually 600 is for screens such as 600x1024 mdpi (7" tablet) and 720 for screens such as 720x1280 mdpi (10" tablet).
Based on the screen size of your tablet create your layout and put it in a folder named layout-sw720
. Then test it directly with the emulator or your device.
Upvotes: 2
Reputation: 2605
layout-sw720 is for the 3.0+ 10 inch tab you can use it otherwise make a entirely different layout and pick it yourself at runtime based on screen width and height
Upvotes: 0