EditText limits the setting method of entering numbers to 1 digit after the decimal point
•
Android
Set in the layout file of EditText:
In the code:
The above EditText restricts the input of numbers to 1 decimal place. The setting method is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码