EditText Drawable Background For Each State
<p>I want to customize my background. So I design shape in selector for each state. but the first item execute.</p>

<p>This is my code:</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android" &gt;
    &lt;item android:color="@android:color/black" &gt;
        &lt;shape android:shape="rectangle" &gt;
            &lt;solid android:color="#FFFFFF" /&gt;
            &lt;stroke
                android:width="1dp"
                android:color="#000000" /&gt;
            &lt;padding
                android:left="10dp"
                android:top="10dp"
                android:right="10dp"
                android:bottom="10dp" /&gt;
            &lt;corners android:radius="10dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;
    &lt;item android:state_pressed="true" android:color="@android:color/black" &gt;
        &lt;shape android:shape="rectangle" &gt;
            &lt;solid android:color="#8faefd" /&gt;
            &lt;stroke
                android:width="3dp"
                android:color="#000000" /&gt;
            &lt;padding
                android:left="10dp"
                android:top="10dp"
                android:right="10dp"
                android:bottom="10dp" /&gt;
            &lt;corners android:radius="10dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;
&lt;/selector&gt;
</code></pre>
