medyo / Fancybuttons

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

setIconResource(Drawable) problem #22

Closed HectorFGarcia closed 9 years ago

HectorFGarcia commented 9 years ago

When you use the method setIconResource(Drawable), the button loses the text gravity. You need to use setTextGravity() after or the button will be aligned to the left by default.

medyo commented 9 years ago

Can you post a sample of your code, so i can reproduce it.