medyo / Fancybuttons

Icons, Borders, Radius ... for Android buttons
1.77k stars 397 forks source link

[solved] Spannable Text #29

Closed rinav closed 9 years ago

rinav commented 9 years ago

Hi, How can we use Spannable Text for the button title?

The setText() method requires String, so cant use spanned text any other work around?

Html.fromHtml("...");

I am trying this in API level 21 and 22

medyo commented 9 years ago

Hi @riinav, Please try to use the getter myFancyButton.getTextViewObject(), so you can manipulate the Text View object according to your needs.

Thanks

rinav commented 9 years ago

Awesome that works like a charm... Thanks for the awesome lib and saving tons of lines of code.

btw, you might consider adding this feature in your wiki

medyo commented 9 years ago

it's already added in the section Supported Getters