Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RoundSparrow opened this issue Nov 20, 2014 · 3 comments

Comments

@RoundSparrow
Copy link

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.

@vekexasia
Copy link
Owner

Hello There,

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

@RoundSparrow
Copy link
Author

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 ;)

@RoundSparrow
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants