views:

67

answers:

1

Hello, I'm adding tab icon via selector like this:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    <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

All is fine, but my icon is smaller then tab itself and I want to set background color same as icon color. But I cant seem to figure out hot to do that.

Any suggestions?

+1  A: 

use a .png transparency.

How to Make a Transparent PNG

test with this image and you will see

Jorgesys