title: Change layout of EditText on state "selected"
body: <p>I am trying to obtain a EditText changing it's colors and layout when the user clicks on it to type something, and I do that with a custom drawable, but the attributes <code>android:state_enabled="true" android:state_focused="true"&gt;</code> don't work at all, meaning that they don't get called.</p>
  
  <p><code>EditText</code>: </p>
  
  <pre><code> &lt;EditText android:id="@+id/field_user_info" android:hint="Nome e Cognome"
          android:layout_marginTop="8dp" android:layout_marginBottom="8dp"
          android:padding="8dp" android:maxLines="1"
          android:background="@drawable/custom_account_edittext"
          android:layout_width="match_parent" 
          android:layout_height="wrap_content"
          android:textColorHint="@color/textHint"/&gt;
  </code></pre>
  
  <p><code>custom_account_edittext</code> drawable: </p>
  
  <pre><code>&lt;selector
      xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;!--&lt;solid android:background="?android:attr/selectableItemBackground"/&gt;--&gt;
              &lt;!--android:color="#ffffff" --&gt;
              &lt;solid android:color="@color/account_grey_300" /&gt;
              &lt;stroke android:width="0.8dip"
                  android:color="@color/account_grey_400"/&gt;
              &lt;corners android:radius="2dip" /&gt; &lt;!--android:bottomRightRadius="7dp"--&gt;&lt;!--android:bottomLeftRadius="7dp"--&gt;&lt;!--android:topLeftRadius="7dp"--&gt;&lt;!--android:topRightRadius="7dp"/&gt;--&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:state_enabled="true"  android:state_focused="true"&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;!--&lt;solid android:background="?android:attr/selectableItemBackground"/&gt;--&gt;
              &lt;!--android:color="#ffffff" --&gt;
              &lt;solid android:color="@color/white" /&gt;
              &lt;stroke android:width="1dip"
                  android:color="@color/cardview_blu_color600"/&gt;
              &lt;corners android:radius="2dip" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>My problem is that I always visualize the default layout (the first item).
  Why do the items <code>&lt;item android:state_enabled="true"  android:state_focused="true"&gt;</code> don't get activated at all?  </p>
  
  <p>How can I customize my <code>TextView</code> states?</p>