user1161990
user1161990

Reputation:

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?

Upvotes: 2

Views: 2644

Answers (3)

Rishabh Agrawal
Rishabh Agrawal

Reputation: 901

Kindly Use This qualifier for your Android Project with compatible screen size.

Resource          Screen Size 

layout-small       <3 inch

layout-normal      3-4 inch

layout-large       >4 inch<7.1

layout-xlarge      7.1 - 10.1 inch

Upvotes: 1

Jeffrey Blattman
Jeffrey Blattman

Reputation: 22637

EddyK's answer is correct if you only want your app to show up in the market for 10" tablets. if you want to provide 10"-tablet specific resources, you can qualify the respective resource folders with the -sw700dp qualifier.

layout-sw700dp
values-sw700dp

etc. use these in favor of the -large, -normal, etc. qualifiers (on Android 3.2+).

see Declaring Tablet Layouts on the Android developer site for details.

Upvotes: 1

Eddy K
Eddy K

Reputation: 874

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"                  
                  />

Upvotes: 2

Related Questions