Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

Image causes text to be off-center #6

Open
ThomasSunderland opened this issue Jan 7, 2016 · 4 comments
Open

Image causes text to be off-center #6

ThomasSunderland opened this issue Jan 7, 2016 · 4 comments

Comments

@ThomasSunderland
Copy link

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.

@scottyab
Copy link
Owner

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

@ThomasSunderland
Copy link
Author

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

@scottyab
Copy link
Owner

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

@ThomasSunderland
Copy link
Author

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

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

No branches or pull requests

2 participants