How to use the TextWatcher class in Android?

前端 未结 9 1121
独厮守ぢ
独厮守ぢ 2020-11-22 02:30

Can anyone tell me how to mask the substring in EditText or how to change EditText substring input to password type

9条回答
  •  时光取名叫无心
    2020-11-22 03:14

    Supplemental answer

    Here is a visual supplement to the other answers. My fuller answer with the code and explanations is here.

    • Red: text about to be deleted (replaced)
    • Green: text that was just added (replacing the old red text)

提交回复
热议问题