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

前端 未结 6 575
自闭症患者
自闭症患者 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条回答
  •  Happy的楠姐
    2020-11-30 06:58

    put the logic in

    afterTextChanged(Editable s) {
        string str = s.toString()
        // use the string str
    }
    

    documentation on TextWatcher

提交回复
热议问题