medyo / Fancybuttons

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

how i can set fb_fontIconResource #119

Closed Abdelsattar closed 6 years ago

Abdelsattar commented 6 years ago

how ican set fb_fontIconResource with a resource ? and why it is not accpet drawable ?

Abdelsattar commented 6 years ago

so how to set right or left drawable ?

medyo commented 6 years ago

Hi @Abdelsattar,

You can do it programmatically, by calling myButton.setIconResource(drawable) Please check the following link for all available attributes: https://github.com/medyo/Fancybuttons#supported-attributes

Abdelsattar commented 6 years ago

@medyo yeah i found that after a while but why not in the xml the same ? of how to make it from xml

medyo commented 6 years ago

It's also doable, please refer to the samples: https://github.com/medyo/Fancybuttons/blob/master/samples/src/main/res/layout/activity_xml_buttons.xml