showhidepasswordedittext icon indicating copy to clipboard operation
showhidepasswordedittext copied to clipboard

Image causes text to be off-center

Open ThomasSunderland opened this issue 9 years ago • 4 comments

If you have two text fields one on top of the other with one being a regular EditText field and the other of this custom type and both have a gravity of center; then the text will not line up once the show/hide image appears.

ThomasSunderland avatar Jan 07 '16 23:01 ThomasSunderland

Hey @ThomasSunderland thanks for raising this, do you have code/layout and/or screen shot of this issue.

scottyab avatar Jan 21 '16 15:01 scottyab

Yes, it's a little hard to see in this one, but you can see that the text in the ShowHidePasswordEditText field is not centered with the text in the EditText field above it despite both of the fields being in line with one another and both having a gravity of center.

loginscreen

ThomasSunderland avatar Jan 21 '16 15:01 ThomasSunderland

I guess a quick fix would be to add padding to the left of passsword edit text?

scottyab avatar Mar 10 '16 09:03 scottyab

I think I had tried that and it moved the hide/show icon over as well, but I could be wrong

ThomasSunderland avatar Mar 11 '16 15:03 ThomasSunderland