selector for button not working
<p>I want to change the background of the button when the button is unclickable.I have used selector for that but it is not working in the case when the button remains unclickable.</p>

<p>This is the selector file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:state_enabled="false"  android:drawable="@drawable/button_lightgrey" /&gt;
    &lt;item  android:state_pressed="true" android:state_enabled="true" android:drawable="@drawable/button_blue"/&gt; 
    &lt;item android:state_focused="true" android:drawable="@drawable/button_darkgreen"  /&gt; 
    &lt;item  android:drawable="@drawable/button_lightgreen" /&gt; 
&lt;/selector&gt; 
</code></pre>

<p>This is the button where i am using this selector file:</p>

<pre><code>&lt;Button
                android:id="@+id/PrevButton"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_centerInParent="true"
                android:layout_marginLeft="5.0dip"
                android:layout_weight="1.0"
                android:background="@drawable/ibtn"
                android:onClick="onPrevButtonClick"
                android:text="Prev" /&gt;
</code></pre>

<p>Please help me.All other functions are working in the selector file but only the unclickable button case is not working.Thanks </p>
