scottyab/showhidepasswordedittext

allow setting of text instead of an icon

Open

#15 创建于 2016年5月12日

在 GitHub 查看
 (0 评论) (2 反应) (0 负责人)Java (83 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (560 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南