medyo / Fancybuttons

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

Image Icon not set dynamically #35

Closed raonasir closed 9 years ago

raonasir commented 9 years ago

Hi medyo,

How can i set dynamically downloaded images as setIconResource function? i am confused about it that it is only taking int and string rather than drawable or bitmap.

medyo commented 9 years ago

Hi @raonasir ,

There is a method called setIconResource() which accepts Drawable as parameter. Check this example: https://github.com/medyo/fancybuttons/blob/master/samples/src/main/java/mehdi/sakout/fancybuttons/samples/ProgramButtons.java#L52

raonasir commented 9 years ago

Hi @medyo ,

it is when we assign drawable from app folder. when i want to use downloaded images then how can i use those images as setIconResource() ?

medyo commented 9 years ago

sorry but your issue isn't related to this library. However, i'd recommend you to check this answer : http://stackoverflow.com/a/6407554/1725748 If you're using a custom image loader library please check their documentation.

Have a good coding day