V
V
vzyalgvozd2020-01-25 06:50:44
Android
vzyalgvozd, 2020-01-25 06:50:44

How to limit min and max value in EditText with inputType=numeric, or how difficult is Android development?

Judging by what the search engine is looking for, the question posed is extremely difficult to solve - with writing your own InputFilter subclass and implementing all the logic manually:
https://stackoverflow.com/questions/14212518/is-th...
As a person familiar with different platforms etc., I already intuitively feel that this is abnormally difficult. And questions arise:
- Why don't Google developers make a ready-made InputFilterMinMax, as well as many other InputFilters for different occasions?
- Or maybe the authors of some third-party library did this?

This question, of course, mostly hopes for the latter. Firstly, the library may be little known and then it is not searched by the search engine, but experienced specialists on the Toaster will answer. In the end, one of the toasters could write it on their own :) Secondly, the library can be completely new, and those topics on SO that are searched for sometimes almost saw Android 2.3.
And another funny moment.
PhoneGap, which is always perceived by everyone as a very complicated way to develop UI for Android, because it is non-native and all, seems to provide a much simpler solution, since Chrome supports the min attribute on input:
htmlbook.ru/html/input/min
...and PhoneGap most likely rotates your UI on all devices in Chromium, and not in Firefox, where this attribute is not present.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question