I'm working on app on android studio and i need subscript and superscript in my       textview and I know how to do it programmatic-ally like:
  Html.fromHtml(r7.getText().toString()+"  m<sup><small>2</small></sup>")
but when writing it the text of textview give me this error:
Error:(104) Error parsing XML: not well-formed (invalid token)
So how to solve this problem, please ???
 
     
     
     
    