I have an EditBox in which I allow users to enter numbers. But my question is how can I restrict the user to enter not more than three-digit numbers before the decimal point and not more that one digit after decimal point eg: 22.1, 333.3, 34 but if the user try to enter 6666.777 it will not allowed them to enter.
Please help me to solve this out. If possible with an example
Use
InputFilterto restrict user. Here is another such topic. Limit Decimal Places in Android EditTextModify for you own. I’ve used this for my own.
Now set the filter