How to prepare layout,drawable folders for 7",10" android tablets for both landscape and portrait?
android, android-layout, android-resources
Solution
The recommended way is to use `layout-swxxdp` qualifier. If you need to differentiate landscape/portrait
res/layout-sw600dp/ # For 7” tablets (600dp wide and bigger)
res/layout-sw720dp/ # For 10” tablets (720dp wide and bigger)
res/layout-sw600dp-port/ # For 7” tablets in portrait (600dp wide or bigger)
res/layout-sw720dp-port/ # For 10” tablets in portrait (720dp wide or bigger)
Problem
I have prepared my drawables for 7" tablets as (Nexus 7) ``` drawable-large-hdpi-port layout-large-hdpi-port ``` I am getting errors while doing this. I didnt understand where I am doing wrong. I want to prepare layouts for both landscape and portrait for both 7", 10" tablets