vekexasia/android-edittext-validator

Possible bug in onFocus not always being called when multiple EditText on screen and click on a second

Closed this issue · 3 comments

First off, I created a fork of the library at: https://github.com/RoundSparrow/android-edittext-validator -- my fork's purpose is to use your work to add a feature I had desired for screen space conservation. A TextView hides each EditText until a user touches the TextView - then they edit appears. You are welcome to absorb this new feature - I added it as a different name - so the library user can have your original FormEditText view. The only real change to your code was to expose a few variables for subclass support...

In the development and testing of my fork - I found something:

The onFocus used in this library is not being called in certain touch-transitions away from the EditText field. I assume the validation doesn't always fire due to this bug.

My fork made it more obvious - because there is a visual change on focus loss... IF YOU WANTED to save time and not bother with my fork - a suggest is to just add one line to set background color on the FormEditText onFocusChanged - and then play around with shifting in and out of the control to see if the color change always appears.

Hello There,

nice debugging infos... Were you able to fix the issue?

I just can't figure it out ;) I suggest that the sample App you add a page that shows 4 FormEditText + TextView side by side - and have the onFocusChanged set the TextView to the entered text to demo the problem.

Or maybe this open issue is enough to draw some help from other developers ;)

Possible confirmation of the problem with EditText focus consistency: http://stackoverflow.com/questions/9427506/onfocuschange-not-always-working