title: Android - Remove totally underline from EditText
body: <p>I have this <code>EditText</code> on my <code>Android</code> app:</p>
  
  <pre><code>&lt;EditText
       android:id="@+id/txtName"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:layout_gravity="center"
       android:layout_marginLeft="20dp"
       android:layout_marginRight="20dp"
       android:layout_marginTop="15dp"
       android:text=""
       android:hint="Name"
       android:width="150dp"
       android:height="50dp"
       android:background="@drawable/rounded_corners" /&gt;
  </code></pre>
  
  <p>and when I type something on it, the word it's underline. </p>
  
  <p>I know that it is because of the auto suggestion of Android and it can be solved with  <code>android:inputType="textNoSuggestions"</code> so <strong>please avoid answers that just say to me what I know</strong>.</p>
  
  <p><strong>The problem</strong> comes when I add the attribute that I put above to the <code>EditText</code>, because it change its form. For example, if the <code>EditText</code>its like:</p>
  
  <pre><code>┌───────────────────────────────────────────┐
  |                                           |
  └───────────────────────────────────────────┘
  </code></pre>
  
  <p>when I add the attribute <code>android:inputType="textNoSuggestions"</code> its form change to something like this:</p>
  
  <pre><code>┌───────────────────────────────────────────┐
  └───────────────────────────────────────────┘
  </code></pre>
  
  <p>And on the bottom of the layout a white block appears (maybe because the <code>EditText</code> are white, I suppose that) with a size more or less as the <code>EditText</code> that has changed (the second one) but in this block I can't interact. Something like this:</p>
  
  <pre><code>┌───────────────────────────────────────────┐
  |                 LAYOUT                    |
  |                                           |
  |    //EditText changed                     |
  |  ┌──────────────────────────────────┐     |
  |  └──────────────────────────────────┘     |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |                                           |
  |  //Block at the end of the Layout         |
  ├───────────────────────────────────────────┤                                           
  └───────────────────────────────────────────┘
  </code></pre>
  
  <p>With the attribute <code>android:inputType="textNoSuggestions"</code> when I type words manually on the <code>EditText</code> they aren't underline but when I use the <code>Swype</code> function of my keyboard, they are underline again.</p>
  
  <p>Also, I don't want that this attribute changes the <code>EditText</code> even more if it creates a block on the bottom of the Layout.  </p>
  
  <p>Therefore, <strong>what I want to know</strong>:</p>
  
  <p><strong>1)</strong> Is it possible to totally remove the underline of the words that are entered into the <code>EditText</code>? It doesn't matter if it is manually, by <code>Swype</code> or whatever.</p>
  
  <p><strong>2)</strong> How can I remove the underline of the words of my <code>EditText</code> but without changing the <code>EditText</code> or that a block appears on my <code>Layout</code>?</p>
  
  <p><strong>EDIT:</strong> Here I add two photos in which you can see the problem:</p>
  
  <p><strong>1)</strong> Before add the attribute.</p>
  
  <p><a href="https://i.stack.imgur.com/OTAY0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OTAY0.jpg" alt="enter image description here"></a></p>
  
  <p><strong>2)</strong> After add the attribute.</p>
  
  <p><a href="https://i.stack.imgur.com/t1M9F.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t1M9F.jpg" alt="enter image description here"></a></p>
  
  <p><strong>EDIT 2</strong>: Here it's my <code>rounded_corners</code> background:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;stroke
          android:width="1dp"
          android:color="#FFFFFFFF" /&gt;
  
      &lt;solid android:color="#FFFFFFFF" /&gt;
  
      &lt;padding
          android:left="1dp"
          android:right="1dp"
          android:top="1dp" /&gt;
  
      &lt;corners android:radius="5dp"/&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>