ckurtm / FabButton

Android Floating ActionButton with a progress indicator ring
774 stars 152 forks source link

Set background color , icon image for fab programmatically instead of assigning them in layout #9

Closed PrudhviRaju123 closed 9 years ago

PrudhviRaju123 commented 9 years ago

Hi , Your github fabButton is very impressive. It's the one of the easiest methods to implement fab animations that i came across.

I am trying to set the background color of the fab button , change the icon image programmatically (using set methods in Activity page) . Is there is any way to do this ?

I tried to set different icons (18,24, 48,36 dp) to the fab buttons but none of them looks promising. It seems every icon is being scaled out to fit in. or can you provide the icons link you are referring to , so that i can check whether is there any wrong with my icon collection

ckurtm commented 9 years ago

use FabButton::setIcon to set icons programmatically.