Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Change Fab menu colors dynamically. #466

Open
satutigroove opened this issue Feb 21, 2019 · 1 comment
Open

Change Fab menu colors dynamically. #466

satutigroove opened this issue Feb 21, 2019 · 1 comment

Comments

@satutigroove
Copy link

Hi,

My requirement is to change the fab menus and mini buttons background color and icons color dynamically, Please tell me is it possible to do the same?

I have used this code, but it's not working

floatingActionMenu.setBackgroundTintList(ColorStateList.valueOf(modifyThemeColour.getCompanyPrimaryColor()));
fab1.setBackgroundTintList(ColorStateList.valueOf(modifyThemeColour.getCompanyPrimaryColor()));
fab2.setBackgroundTintList(ColorStateList.valueOf(modifyThemeColour.getCompanyPrimaryColor()));

@0xTL
Copy link

0xTL commented Feb 21, 2019

This library is not maintained anymore. Checkout this forked repo(uses androidx)

You can set the color of the menu button with setMenuButtonColorNormal. For the mini button you can use setColorNormal.

Setting the icon color is not possible. In the forked repo, you can set icon color of the menu button(but not of the mini icon yet), setIconTint

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants