How to use EditText onTextChanged event when I press the number?

前端 未结 6 591
自闭症患者
自闭症患者 2020-11-30 06:40

I have an EditText with \"text = 0.00\". When I press the number 3, it should be like 0.03 and the second time when I press the number

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 07:11

    You have selected correct approach. You have to extend the class with TextWatcher and override afterTextChanged(),beforeTextChanged(), onTextChanged().

    You have to write your desired logic in afterTextChanged() method to achieve functionality needed by you.

提交回复
热议问题