I have developed an app with 6 panels for android phones. Now I would like to support android tablets too. I think I’d just show UIs of the 6 panels in a big screen of the tablet. Is there any way to have separate xml for the layout of tablet?
Share
You can have separate layouts for different screen sizes. See the guide topic Supporting Multiple Screens.
The basic technique prior to 3.2 is to create a resource directory
layout-xlargeand put your tablet-specific layouts there. The xml files in that directory should have the same names as the files in the regularlayoutdirectory.For OS 3.2, things have changed quite a bit. Take a look at the section Declaring Tablet Layouts for Android 3.2.