vekexasia/android-edittext-validator

Infotext is above Actionbar

Closed this issue · 3 comments

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

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.

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

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".