常见的Drawable,放置默认drawable一系列目录,有时候会发现drawable找不到的情况,其实还可以放另外一个目录下
values------->>dimens.xml
<resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> <drawable name="actionbar_back">#ef202020</drawable> <drawable name="tab_selected">#ffe16b99</drawable> <drawable name="tab_unselected">#33ffffff</drawable> <drawable name="tab_selected_pressed">#ffe23176</drawable> <drawable name="tab_unselected_pressed">#ffe16b99</drawable> <drawable name="tab_selected_focused">#ff000000</drawable> <drawable name="tab_unselected_focused">#22ffffff</drawable> <drawable name="button_unpressed">#00000000</drawable> <drawable name="button_pressed">#45000000</drawable> <drawable name="view_unpressed">#00000000</drawable> <drawable name="view_pressed">#22000000</drawable> </resources>
对于一些特殊颜色背景,不想用color表示时候,就可以用图片表示了,同时为了代码中用到drawable的地方,可以直接用,而不需要用颜色转换。