scottyab/showhidepasswordedittext
GitHub で見るallow setting of text instead of an icon
Open
#15 opened on 2016年5月12日
enhancementhelp wanted
Repository metrics
- Stars
- (560 stars)
- PR merge metrics
- (30d に merged PR はありません)
説明
Show/Hide text is less mental strain to understand and can be localised.
- Add two new attributes
show_textandhide_textand 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.