title: android custom EditText UI
body: <p>I would like to customize the way the default EditText is drawn on the screen, I have this code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
   &lt;selector
   xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
   &lt;item android:state_pressed=&quot;true&quot; &gt;
  &lt;shape android:shape=&quot;rectangle&quot;&gt;
      &lt;solid
          android:color=&quot;#00ff00&quot; /&gt;
      &lt;stroke
          android:width=&quot;5dp&quot;
          android:color=&quot;#ff0000&quot;
          android:dashWidth=&quot;3dp&quot;
          android:dashGap=&quot;2dp&quot; /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
  
  &lt;item android:state_focused=&quot;true&quot; &gt;
  &lt;shape&gt;
      &lt;gradient
          android:endColor=&quot;#8dc73f&quot;
          android:centerColor=&quot;#d4d4d4&quot;
          android:startColor=&quot;#d4d4d4&quot;
          android:centerX=&quot;0.5&quot;
          android:centerY=&quot;0.5&quot;
          android:angle=&quot;270&quot; /&gt;
      &lt;stroke
          android:width=&quot;1dp&quot;
          color=&quot;#8dc73f&quot; /&gt;
      &lt;corners
          android:radius=&quot;6dp&quot; /&gt;
      &lt;padding
          android:left=&quot;10dp&quot;
          android:top=&quot;10dp&quot;
          android:right=&quot;10dp&quot;
          android:bottom=&quot;10dp&quot; /&gt;
  &lt;/shape&gt;
  &lt;/item&gt;
   &lt;item&gt;        
   &lt;shape&gt;
       &lt;gradient
          android:endColor=&quot;#d4d4d4&quot;
          android:centerColor=&quot;#d4d4d4&quot;
          android:startColor=&quot;#d4d4d4&quot;
          android:angle=&quot;270&quot; /&gt;
       &lt;stroke
          android:width=&quot;1dp&quot;
          color=&quot;#00ff00&quot; /&gt;
       &lt;corners
          android:radius=&quot;7dp&quot; /&gt;
     &lt;/shape&gt;
     &lt;/item&gt;
    &lt;/selector&gt;
  </code></pre>
  <p>which works fine but the problem is that on the focused state I would like to apply the effect round of the EditText and note inside, like the default android effect is applied. Is this possible and how? I haven't found a solution, the above code only applies the effect inside the EditText.</p>