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 5, the text should be 0.35
. And 35.0
, 35.09
like this. The EditText
initially has the value of 0.00
.
These are all done with the same EditText
.
How do I achieve this? I have tried using addTextChangedListener()
with TextWatcher()
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…