I\'m working with FloatingActionButton. The user should be able to switch the FAB background color within a onClick Event.
FloatingActionButton
onClick
However, the rec
simple:
fab.setBackgroundTintList(ColorStateList.valueOf(0xFF4CAF50));
fab is your FloatingActionButton of course and 0xFF4CAF50 just a example color
fab
0xFF4CAF50