How to underline an EditText
<p>I am having some problems to underline an EditText in AndroidStudio.</p>
<p>This is what I am looking for (this is just a photo, not my real text):</p>
<p><img src="https://i.stack.imgur.com/vic0R.png" alt="example screenshot" /></p>
<p>But I do not really know any property to do that.</p>
<p>My code right now is really simple. Just the &quot;normal&quot; one:</p>
<pre><code> &lt;EditText
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:inputType=&quot;textPersonName&quot;
        android:ems=&quot;10&quot;
        android:layout_margin=&quot;16dp&quot;
        android:id=&quot;@+id/tx_titulo&quot;
        android:layout_alignParentTop=&quot;true&quot;
        android:layout_alignParentLeft=&quot;true&quot;
        android:layout_alignParentStart=&quot;true&quot;
        android:text=&quot;@string/pt_titulo&quot;
        android:layout_alignParentRight=&quot;true&quot;
        android:layout_alignParentEnd=&quot;true&quot;
        android:allowUndo=&quot;true&quot;
        /&gt;
</code></pre>
<p>I do not want to underline just the text (in this case &quot;Título&quot;), but the whole PlainText</p>
<p>Does anybody know it?
Greets.</p>