title: How to remove UnderlineSpan() text using button click
body: <p>I am trying things out by creating a small notepad project. And now i am having a hard time finding a solution to remove the underline on text. I can set it but i cant remove it.</p>
  <p>Heres my code:</p>
  <h2>Heres how i set it</h2>
  <h3>I use span to get the selected text</h3>
  <pre><code>selectedString.setSpan(UnderlineSpan(), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
  </code></pre>
  <h2>Heres how i am trying to unset it</h2>
  <pre><code>selectedString.setSpan(UnderlineSpan().updateDrawState(TextPaint().apply { isUnderlineText = false }), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
  </code></pre>
  <p>I tried to search for a solution but no luck can someone help me? thanks in advance!</p>