I suggest using the intended tool for the job: an input filter might be a better alternative Here is some example code and some documentation If you need something more complex, I recommend looking at this code.
I suggest using the intended tool for the job: an input filter might be a better alternative. Here is some example code and some documentation. If you need something more complex, I recommend looking at this code.
Thanks, I think that's what I needed. – Dirol Jul 3 at 11:40 Welcome. Hope it works for you.
– Jim Lim Jul 4 at 13:57.
I think it would be a better approach to check validation with any other event e.g. On Enter press or with a button etc..
Of course, I've noticed it ) And the question is - how I can avoid it and still get the results. OnEnter, or any other button press is not appropriate for this case, cause user can click on the button - which takes him out of this layout - so he can't see that the program corrected him. (Well, he actually can see it by the Toast, but still there is an other layout in front of him right now, which is not so user-friendly) – Dirol Jul 3 at 11:13.
I need to validate, that EditText's value is an Integer between 1 and 1000. If it's not - I should put some of the default value into the EditText. When I try to do such a thing with following code - I get to the infinite loop (well, that was predictable).
I've checked the similar questions, but I still can't figure out, how to make the code working.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.