Android EditText监听只能输入2位小数

在xml布局文件中,EditText中属性android:inputType="numberDecimal",然后代码如下:

猜你喜欢

转载自blog.csdn.net/hai_jian/article/details/48550451