我正在通过选择器添加标签图标,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/tab_cart_selected" android:state_selected="true" />
<item android:drawable="@drawable/tab_cart" />
</selector>
http://img844.imageshack.us/img844/2535/questionn.jpg
一切都很好,但是我的图标比标签本身小,我想将背景颜色设置为与图标颜色相同。但我似乎无法弄清楚这样做很热。
有什么建议么?