Android EditText with icon/button
<p>How can I obtain an <code>EditText</code> as those bellow?</p>

<p><a href="https://i.stack.imgur.com/vPX7J.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vPX7J.jpg" alt="enter image description here"></a></p>

<p>The x button removes the text inserted and the eye button displays the clear password as long as it's pressed. Note that I refer to them as buttons because I don't really know what they actually are nor if they are part of the EditText itself or if they are independent views.  </p>