question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How change color fabOption

See original GitHub issue

Hey! 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kabumerecommented, Mar 18, 2021

@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.

0reactions
Leeeeerichcommented, Mar 18, 2021

Sorry, my bad! I can’t found a link to document info. Thanks for the link.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found