How to combine input fiters for numberdecimal EditText?
问题 I have an app with single numberdecimal EditText . I have done 2 input filters for that EditText. I want to combine these input filters, because one of them isn't working: I want to make that the user cannot enter a value greater than 120.0 . Example: User can input 1, 2.3, 23, 45.7, 89.6, 119.9, 120.0 etc. User can't input 3.34, 45.76, 89.652, 120.00, 121.00 etc. But this code allow user to enter as many digits before decimal point, as he want:( Code of my input filters: editText.setFilters