Removing style from selected text in edittext

前端 未结 3 1422
忘掉有多难
忘掉有多难 2021-01-06 03:59

My app should allow users to style inputted or selected text in an Edittext. Some of these styles are Underline, Strike through, Bold and Italic. They are easily added but I

3条回答
  •  醉酒成梦
    2021-01-06 04:09

    I think this way below is the simplest but useful. It works for me.

    Please try this code:

    myEditText.setTypeface(Typeface.DEFAULT);
    

提交回复
热议问题