Skip to content Skip to sidebar Skip to footer

Android - Extra Large Images Placed In Res/drawable-xhdpi Aren't Showing On Tablet Emulator, Why?

My app seems to be working on different sized screens well, apart from the tablet sized screens. The way I have worked, is using a relative layout, which has lots of images. The im

Solution 1:

xhdpi is "extra high DPI" (e.g. the Galaxy Nexus, small screen, big resolution), most tablets do not fit in this category. You're probably looking for drawable-xlarge.


Solution 2:

This can sometimes happen with 'compatability mode'

http://developer.android.com/guide/practices/screen-compat-mode.html

You can declare that you support these extra large screens like this:

 <supports-screens android:xlargeScreens="true" />

or try declaring that you target SDK version 13, this will turn compatibility mode off. however this has other side-effects

 <uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="13" />

It's all documented in the above link


Post a Comment for "Android - Extra Large Images Placed In Res/drawable-xhdpi Aren't Showing On Tablet Emulator, Why?"