medyo / Fancybuttons

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

Setting text color programmatically doesn't change icon color #16

Closed abdelrahman-elkady closed 9 years ago

abdelrahman-elkady commented 9 years ago

using setTextColor changes only the text color without the icon's color , however setting it in the xml changes both

steps to reproduce :

  1. create a button in xml with a font icon
  2. find and grab the button in an activity
  3. call setTextColor(int color) on the button

The button will change only the text color and the icon color will remain as given in the xml

medyo commented 9 years ago

I think with your new pushed code, it's partially fixed setTextColor will change text color and setIconColor will change icon color

abdelrahman-elkady commented 9 years ago

yes this should be closed as it's fixed on master in #17 :+1: