Anil M H
Anil M H

Reputation: 3342

Android emulator not tack right layout

I created a 3 layout HDPI, MDPI, IDPI. And in the system android emulator i created 3 emulators but same time it tack the right one,

I tested it into canvas HD phone but, in the phone it take the normal layout only , Why does the phone not take a HDPI layout?

in my Android Manifest

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

Upvotes: 0

Views: 132

Answers (1)

Benil Mathew
Benil Mathew

Reputation: 1634

Can you try putting this in your AndroidManifest.xml

    <compatible-screens>

    <!-- all small size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />
    <!-- all normal size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="normal" />
</compatible-screens>

Support Screeens

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

Upvotes: 3

Related Questions