Search code examples
androidandroid-layoutandroid-screen

Android tablet screen size


I need to develop android application ONLY for android tablet 10.1.

For that can I created my xml file in my res--->layout folder for 10.1 tablet size?

Or do I have to create res--->layout-large folder for this purpose?


Solution

  • you can use the existing layout folder since you don't want to support any other screen sizes. Although you have to specify that in the AndroidManifest under the tag

    e.g. :

     <supports-screens android:resizeable="false"
                      android:smallScreens="false"
                      android:normalScreens="false"
                      android:largeScreens="true"                  
                      />