Closed MewX closed 9 years ago
compile 'com.github.wangjiegulu:RapidFloatingActionButton:1.0.1'
<dependency>
<groupId>com.github.wangjiegulu</groupId>
<artifactId>RapidFloatingActionButton</artifactId>
<version>1.0.1</version>
</dependency>
You may try this way:
DRAWABLE_A: The drawable when pressed state
DRAWABLE_B: The drawable when normal state
StateListDrawable drawable = new StateListDrawable();
drawable.addState(new int[]{android.R.attr.state_pressed, android.R.attr.state_enabled}, DRAWABLE_A);
drawable.addState(new int[]{}, DRAWABLE_B);
// Set the drawable that you want to the rfab
rfaButton.setButtonDrawable(drawable);
rfaButton.build();
Oh, thx!
I want to change rfab icon's color, is there any way to reach this?