Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding custom drawable to "AddFloatingActionButton" #353

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

majindageta
Copy link

Added the possibility to use a custom drawable instead of the "+" icon button.
Added a custom attr to avoid rotation for the AddFloatingActionButton if needed
schermata 2018-02-16 alle 17 02 10

Added a custom attr to FloatingActionButton to remove only the image (leaving the text)

@czerwix
Copy link

czerwix commented May 3, 2018

one question :D. is there any option to remove the background and only leave icons? i tried all options but i'm unable to do it.

@majindageta
Copy link
Author

Hi! The only way I found was to put a trasparent color as the fill color and remove the shadow (Don't remember the exact code right now, sorry) but if you remove the shadow on the floating button, all button (included the inner one) do not have the shadow (this is because they share the same property).

Hope this helps!

@czerwix
Copy link

czerwix commented May 4, 2018

Oo. Big thanks, ill probably convert this library to kotlin and implement those custom changes :D

@majindageta
Copy link
Author

Nice.
See this pull too: #143
this guy did almost the same thing as me.

In that thread they talk about another library that is a little bit more active: https://github.com/Clans/FloatingActionButton

Happy coding!

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

Successfully merging this pull request may close these issues.

2 participants