What is the right way to support different tablet sizes?

Our application was originally developed for Nexus 7 and Nexus 10 (and other values-sw600dp devices), so we had the values-sw600dp and values-sw720dp , but with the introduction of Nexus 9 we had to handle 4: 3. It automatically uses the folder values-sw720dp with 1024x768dp, but nothing seems to be true as it was originally intended for wider screens. If I change the values ​​in values-sw720dp , it will ruin how the application will display on Nexus 10 and other similar tablets. What should I do?

+4
source share
1 answer

Other qualifiers exist, such as long / notlong (or h720dp , etc.). See Providing Resources .

Then values-sw720dp-notlong can only be provided by Nexus9 .

(Or, as a completely alternative solution, you can use RelativeLayout or LinearLayout for this purpose. This approach reduces the need to switch layouts for different display sizes.)

+2
source

All Articles