scottyab / showhidepasswordedittext

Show/Hide Password EditText is a very simple extension of Android's EditText that puts a clickable hide/show icon in the right hand side of the EditText that allows showing of the password.
Apache License 2.0
558 stars 83 forks source link

allow setting of text instead of an icon #15

Open scottyab opened 8 years ago

scottyab commented 8 years ago

Show/Hide text is less mental strain to understand and can be localised.

Suggestion: treat the text as a drawable create inner class that extends Drawable. This way it can just be handled as a drawable and the logic of the view can stay the same (not if text do this). If possible get the typeface from the edittext in case a custom font has been set.