How change color fabOption
See original GitHub issueHey! How I can change the color programmatically for fabOption: button, labelBackground, labelText?
If I changing color for an icon it normally works, but when I changing the color for the button, labelBackground, labelText and changing the text for the label, all my labels changing to a new color and text.
eFabFilterIssues.fabOptionIcon?.setTint(getColor(iconColor))
eFabFilterIssues.fabOptionColor = buttonColor
eFabFilterIssues.label.labelTextColor = textColor
eFabFilterIssues.label.labelBackgroundColor = buttonColor
eFabFilterIssues.label.labelText = "New text"
P.S. And the new button color, not that was which set.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Android changing Floating Action Button color - Stack Overflow
As described in the documentation, by default it takes the color set in styles.xml attribute colorAccent. The background color of this view defaults...
Read more >How to Change Colors of a Floating Action Button in Android?
In this article, we will take a look at How to change the color of the Floating action button in android. A sample...
Read more >How to Change Background Color of Floating Action Button
To change background color of Floating Action Button in Kotlin Android, set the backgroundTint attribute (in layout file) or backgroundTintList property (in ...
Read more >How to use the expandable Floating Action Button
Let's customize the colors and icons of each FabOption, then give them labels which we will also customize. Now, our layout file will...
Read more >FabOption
FabOptions must be defined within an class ExpandableFabLayout to ... For example, disabling a FabOption then manually changing its background color will ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Leeeeerich for future reference, links to the documentation are on the library’s website.
JavaDoc: https://nambicompany.github.io/expandable-fab/javadoc/ KDoc: https://nambicompany.github.io/expandable-fab/kdoc/
You should also consider telling Android Studio (or whatever IDE you use) to download the sources of the library. This will allow you to see all the documentation right from your IDE. Every public method in the library is well documented with comments.
Sorry, my bad! I can’t found a link to document info. Thanks for the link.