Image causes text to be off-center
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.
Hey @ThomasSunderland thanks for raising this, do you have code/layout and/or screen shot of this issue.
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.

I guess a quick fix would be to add padding to the left of passsword edit text?
I think I had tried that and it moved the hide/show icon over as well, but I could be wrong