Skip to content
This repository has been archived by the owner on Nov 18, 2017. It is now read-only.

allow setting of text instead of an icon #15

Open
scottyab opened this issue May 12, 2016 · 0 comments
Open

allow setting of text instead of an icon #15

scottyab opened this issue May 12, 2016 · 0 comments

Comments

@scottyab
Copy link
Owner

scottyab commented May 12, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant