I want to write a input filter such that if i say the edit text should not have a number higher than 40 you can input 1-40 , but anything else will not work
I do not want to do that with a text watcher, but an InputFilter
how can I do that ?
I want to write a input filter such that if i say the edit text should not have a number higher than 40 you can input 1-40 , but anything else will not work
I do not want to do that with a text watcher, but an InputFilter
how can I do that ?
There's a property of EditText (in xml) called:
You might be having a button click or something during which you would validate the EditText, there you can do something like this: