Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I made a project with a drawable that is only in the "res/drawable" folder, tested it on my One X, and confirmed the image is displayed:<br> <a href="https://github.com/lnanek/Misc/tree/master/TestOneXDrawableFolder" rel="nofollow">https://github.com/lnanek/Misc/tree/master/TestOneXDrawableFolder</a></p> <p>Layout: </p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"&gt; &lt;ImageView android:src="@drawable/drawableonly" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Resources:</p> <pre><code>res res/drawable res/drawable/drawableonly.png res/drawable-hdpi res/drawable-hdpi/ic_launcher.png res/drawable-ldpi res/drawable-mdpi res/drawable-mdpi/ic_launcher.png res/drawable-xhdpi res/drawable-xhdpi/ic_launcher.png res/layout res/layout/activity_main.xml res/menu res/menu/activity_main.xml res/values res/values/strings.xml res/values/styles.xml res/values-v11 res/values-v11/styles.xml res/values-v14 res/values-v14/styles.xml </code></pre> <p>You can try to figure out what you are doing different that might be triggering some other behavior. Keep in mind that having a "drawable" folder and a "<code>drawable-mdpi</code>" folder is a little odd, because the drawable folder is <code>mdpi</code> density by default. It may be not be deterministic which of those two will get used. I know using a density specifier does automatically append a -v4 in modern build tools to fix problems with Android 1.5 not understanding these specifiers and handling them correctly, so <code>drawable-mdpi-v4</code> might be considered to have more specifiers and match in precedence compare to drawable. Both folders have a <code>mdpi</code> density class anyway, however, so keep in mind your drawable from either folder will be scaled up automatically if used from there.</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. 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.
 

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