title: Android different EditText backgrounds for different states using shapes, selector or list
body: <p>I'm starting a new app where I use ActionBarSherlock &amp; HoloEverywhereLib. My min &amp; target SDK are the same (10/2.3.3). This is just so I can also quickly port it to Amazon Kindle &amp; BB10 using the android runtime they have (already used this setup for another app and it worked without issue). All the while the app should have as close to ICS/JB look as possible.</p>
  
  <p>For my EditTexts though, I'm giving them a Girgerbread/iOS (round corners, but no shadows) look to them</p>
  
  <p>Someone mentioned to me a few weeks ago to grab the drawables for Gingerbread and use them to my EditTexts. but i starting using another answer I found here at S/O, very simple:</p>
  
  <pre><code>&lt;EditText
   background:"@drawable/edittext_round_white"
   ..../&gt;
  </code></pre>
  
  <p>&amp; my edittext_round_white.xml:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle"
    &gt;
    &lt;corners android:radius="8dp"/&gt;
  &lt;stroke android:width="1dp"
      android:color="#444"/&gt;
  &lt;solid android:color="#FFFFFF" /&gt;
    &lt;/shape&gt;
  </code></pre>
  
  <p>Now, when I run the app, two things are not right</p>
  
  <p>a) there is no 'focus' at all (I'm aware I need to implement this, it's the point of the question)</p>
  
  <p>b) the cursor does not appear at all in my edittext (the gray vertical line hinting at to where in the edittext the input is directed)</p>
  
  <p>For a)
  I assume I've to use some sort of selector or list, right? how? I'm new to styling in android and any help would be appreciated. The only thing I'm going to change is the stroke color.</p>
  
  <p>For b) how can I make cursor show up? </p>
  
  <p>Any hints / links / etc here are very much welcomed!</p>