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.
Show/Hide text is less mental strain to understand and can be localised.
Add two new attributes show_text and hide_text and corresponding java methods.
If text set then use this in preference over drawable
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.
Show/Hide text is less mental strain to understand and can be localised.
show_text
andhide_text
and corresponding java methods.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.