title: How to make selected text on EditText underlined?
body: <p>I have an EditText. I need to underline a text when the user presses a button after selecting.
  I have tried using this code:</p>
  
  <pre><code>myEditText.setText(HtmlCompat.FromHtml("&lt;u&gt;" + selection + "&lt;/u&gt;", HtmlCompat.FROM_HTML_MODE_LEGACY));     
  </code></pre>
  
  <p>This works, however, if I have previously set bold (or italics, for example), when the above code gets called, the Bold/Italics not only get back to normal, but the entire formatting gets messed up too.<br>
  Is there any way that I could just toggle the underlining in the selected text without messing everything up?</p>