Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The difference is one, the border, is involving a shape which is a drawable entity. The other, the values resource, is referencing a <a href="http://developer.android.com/guide/topics/resources/more-resources.html#Color" rel="nofollow">color</a> which is acceptable as a drawable as shown in a note <a href="http://developer.android.com/guide/topics/resources/drawable-resource.html" rel="nofollow">here</a> - like so =></p> <blockquote> <p>Note: A color resource can also be used as a drawable in XML. For example, when creating a state list drawable, you can reference a color resource for the android:drawable attribute (android:drawable="@color/green").</p> </blockquote> <p><em>I would imagine the background in question looks something like <a href="http://www.colorhexa.com/ff0000" rel="nofollow">this</a>. (#f00 represents a websafe color)</em></p> <p><strong>Edit:</strong> <a href="http://www.linuxtopia.org/online_books/android/devguide/guide/topics/resources/available-resources.html" rel="nofollow">Please see this article about color drawables</a>.</p> <p>What it says, and what the <a href="http://developer.android.com/guide/topics/resources/drawable-resource.html#Bitmap" rel="nofollow">Android Drawable Resources</a> shows, is that files used for specific purposes like any of the drawable types shown require certain tags to be the root. Just removing the <code>&lt;resource&gt;</code> tag as has been suggested is not going to work. If you're wanting to force the color drawable into another resource folder other than where it belongs (values), which I can't really see why, then you're going to have to hack it.</p> <p><strong>Final word:</strong><br> You asked why they're in different places and why you can't just rename and move it into another folder of your choosing - both of which have been answered. I believe if you're expecting a solution on moving the file to the <code>drawable</code> folder then another question asking such would be in order. Please consider upvoting or accepting an informative answer.</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.
 

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