You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use "padding" or "center_horizontal" of PasswordView, (getRight() - getCompoundDrawables()[2].getBounds().width()) will not show the true location of eye icon.
In this way, onTouchEvent can not handle the click event correctly.
Using getWidth() instead of getRight(), and getPaddingRight()
The text was updated successfully, but these errors were encountered:
nickwongwong
changed the title
coordinate calculation error of eye icon
clicked coordinate calculation error of eye icon
May 21, 2016
Having the same issue. If I use padding, the user can only toggle it by tapping the very end of the edit text field (i.e the last pixel)
Same results when using padding on either the TextInputLayout or directly on the PasswordView
When we use "padding" or "center_horizontal" of PasswordView,
(getRight() - getCompoundDrawables()[2].getBounds().width())
will not show the true location of eye icon.In this way,
onTouchEvent
can not handle the click event correctly.Using
getWidth()
instead ofgetRight()
, andgetPaddingRight()
The text was updated successfully, but these errors were encountered: