SuReSh PaTi
SuReSh PaTi

Reputation: 1371

how to work with different resolution in android?

I have to prepare one application.I want give support to different resolution.i have to prepared different layouts.Frist time my layouts is,

res/layout/mylayout----7" normal screen
res/layout-large/mylayout----7" large screen
res/layout-xlarge/mylayout---10.1" 

but it is taking 7" large screen.i found some solution in this site.Solution is ,create layout is,

res/layout/mylayout----7" normal screen
res/layout-sw600dp/mylayout----7" large screen
res/layout-sw720/mylayout---10.1" 

After changed layout names it is taking 7" large screen only. please help me do.

Upvotes: 1

Views: 1190

Answers (2)

user1213202
user1213202

Reputation: 1305

 For mulitple screen support   Try by using this... in ur android manifest file
        <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:resizeable="true"
        android:smallScreens="true"
         />

Upvotes: 0

Akilan
Akilan

Reputation: 1717

Check your project Build Target To support xlarge screen your project build target should be atleast android 2.3.3 adk.

In Eclipse -?right click on project -> Properties -> Android -> Select Project Build Tagrget as 2.3.3 or onwards.

First of all set the multiple screen support in your Android Application manifest file

<supports-screens                                 
    android:smallScreens="true"                    
    android:normalScreens="true"         
    android:largeScreens="true"            
    android:xlargeScreens="true"             
    android:anyDensity="true" />

And also see this Link

Upvotes: 1

Related Questions