title: how to set cursor background transparent for EditText Android
body: <p>I'm having this issue when I touch an EditText for changing text on Android:</p>
  
  <p><a href="https://i.stack.imgur.com/2ft3l.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2ft3l.png" alt="enter image description here"></a><br>
  A white frame appears around the red cursor, and I need it to be transparent for showing properly the line of the EditText. How do I change this?</p>
  
  <p>code:</p>
  
  <pre><code>&lt;EditText
              android:id="@+id/login_user_name_text"
              android:textCursorDrawable="@null"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/black"
              android:textSize="16sp"
              android:inputType="textEmailAddress"
              android:imeOptions="actionNext"
              android:maxLines="1"
              android:hint="@string/email"
              android:maxLength="60"
              /&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>EDIT:</strong> I could fix it by replacing:</p>
  
  <pre><code>&lt;item name="android:background"&gt;@color/white&lt;/item&gt;
  </code></pre>
  
  <p>for</p>
  
  <pre><code>&lt;item name="android:background"&gt;@color/transparent&lt;/item&gt;
  </code></pre>
  
  <p>in styles.xml</p>
  
  <pre><code> &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:windowDisablePreview"&gt;true&lt;/item&gt;
          &lt;item name="android:background"&gt;@color/transparent&lt;/item&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name="drawerArrowStyle"&gt;@style/DrawerArrowStyle&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NwAJj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NwAJj.png" alt="enter image description here"></a></p>