ARGB not working properly in Android app
<p>I am trying to apply a transparent background to my row when it is pressed in my ListView. I create the file list_selector.xml like this:</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:state_pressed="true" android:drawable="@drawable/argb80804040" /&gt;
&lt;/selector&gt; 
</code></pre>

<p>and in my news_item.xml, I define the back ground as follow:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/list_selector"&gt;

&lt;ImageView
   android:id = "@+id/img"
   android:layout_width="95dip"
   android:layout_height="75dip"
   android:layout_alignParentLeft = "true"
   android:paddingTop="10dip"
   android:layout_marginLeft="10dip"
   android:paddingBottom="10dip"
   android:src="@drawable/no_news_image_small" /&gt;     

&lt;TextView android:id="@+id/title"
    android:layout_gravity="center_vertical"
    android:layout_width="fill_parent"
    android:layout_weight="1.0"
    android:layout_height="wrap_content" 
    android:textSize="12sp" 
    android:textStyle="bold"
    android:paddingTop="5dip"
    android:layout_marginLeft="110dip"
    android:textColor="#21B6EF"
    android:singleLine="true" /&gt;

&lt;TextView android:layout_gravity="center_vertical"
    android:layout_width="fill_parent"
    android:layout_weight="1.0"
    android:layout_height="wrap_content" 
    android:layout_marginLeft="110dip" 
    android:textSize="10sp" 
    android:id="@+id/description" 
    android:layout_below="@id/title"
    android:paddingBottom="10dip" 
    android:layout_marginBottom="5dip" 
    android:textColor="#fff"/&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>However, it displays as solid color instead of ARGB color. My drawable is define as follow:</p>

<pre><code>&lt;resources&gt;
    &lt;item type="drawable" name="transparent_orange"&gt;#64ff7b00&lt;/item&gt;
    &lt;item type="drawable" name="argb80804040"&gt;#80804040&lt;/item&gt;
    &lt;item type="drawable" name="argb40000000"&gt;#40000000&lt;/item&gt;
    &lt;item type="drawable" name="argb80408040"&gt;#80408040&lt;/item&gt;
&lt;/resources&gt;
</code></pre>

<p>Do I need to do something else to get aplha color working? I am trying on my own device (motorola defy), and i am also using another application that uses the same alpha color and the color appears ok in this application, but in mine, it doesnt.</p>

<p>Many thanks for any response
T</p>
