android - 两个实时互相监听的EditText怎么设置只能输入到小数点后四位?
阿神
阿神 2017-04-17 17:27:48
0
2
485

这是第一个edittext的et1的监听事件,加了第二个edittext的et2的设置文本事件后就出现混乱,同理在第二个edittext的et2的监听事件也遇到了此问题。求解答。

阿神
阿神

闭关修行中......

reply all(2)
Peter_Zhu

The listening event of edittext's et1 is added with the setting text of the second edittext's et2. There is no error in this logic. I have also written it this way. It will not go wrong when I write it this way. Maybe you have written it wrong in other places

迷茫

TextView#setFilters()

Explanation of setFilters method in TextView and EditText

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template