vekexasia / android-edittext-validator

Android form edit text is an extension of EditText that brings data validation facilities to the edittext.
MIT License
1.45k stars 378 forks source link

Infotext is above Actionbar #5

Closed eiabea closed 11 years ago

eiabea commented 11 years ago

when a infotext is showing and the FormEditText is in a scrollview it happens that the overlay is on top of the actionbar when scrolling device-2013-05-07-170458

vekexasia commented 11 years ago

Confirmed. What do you think it should do?

Actually i believe that you should do your own check and eventually call a scroll event so that the "wrong" element gets visible. Tell me your thoughts.

eiabea commented 11 years ago

i think the standard behaviour could be that the info text gets behind the actionbar. I don't know how you even can show it above ^^ or something like a collision detection, whichk hides the info text completely when it hits the action bar

vekexasia commented 11 years ago

Hello,

As i said you should take your own precautions to this. Please take a look at:

http://developer.android.com/reference/android/view/View.html#getLocationOnScreen(int[])

You should check which view haves the getLocationOnScreen out of your "user view" and do a

mScrollView.scrollTo(xPosition, yPosition);

You could also try to trigger the "requestFocus()" method of the view that is out of your "screen".