Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As you have stated, if the phone / tab accesses the xhdpi directory then we expect it to scale the image appropriately to fit the screen. Therefore we expect that if the resource exists in ANY ONE of the directories then we will never see a ResourceNotFound exception. HOWEVER:</p> <p>xhdpi was only introduced in Android SDK 8, so if you target SDK 7 and earlier you may run into problems:</p> <p><a href="https://stackoverflow.com/questions/5998865/only-use-xhdpi-drawables-in-android-app">Only use XHDPI drawables in Android app?</a></p> <p>Another reason why Android may not be able to access the xhdpi directory is if the device is running in screen compatability mode:</p> <p><a href="https://stackoverflow.com/questions/9434884/android-extra-large-images-placed-in-res-drawable-xhdpi-arent-showing-on-tabl">Android - Extra large images placed in res/drawable-xhdpi aren&#39;t showing on tablet emulator, why?</a></p> <p>Another possible reason is if your drawable is very small and one of its dimensions is rounded to zero as a result of scaling:</p> <p><a href="https://stackoverflow.com/questions/15428441/android-resource-not-found-because-of-width-and-height">Android resource not found because of width and height</a></p> <p>Finally, it is possible that some OEM versions of Android may implement this in a non-standard way (e.g "enhancing performance" by not searching the xhdpi directory if their device is hdpi):</p> <p><a href="https://stackoverflow.com/questions/15621876/android-drawable-hdpi-xhdpi-mdpi-ldpi-concept">Android Drawable hdpi xhdpi mdpi ldpi concept</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload