Clear EditText text after adding onTextChanged implemenation

后端 未结 5 678
孤街浪徒
孤街浪徒 2021-01-11 11:18

I\'m adding a listener to an EditText field to appropriately format the number to currency in real time.

        loanText.addTextChangedListener(new TextWatc         


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-11 11:45

    I found this class that works great for me: http://www.java2s.com/Code/Android/UI/ConvertinputvaluetoCurrencyinTextWatcher.htm

    hope that will save you guys some time.

提交回复
热议问题