android-floating-action-button icon indicating copy to clipboard operation
android-floating-action-button copied to clipboard

Adding custom drawable to "AddFloatingActionButton"

Open majindageta opened this issue 7 years ago • 4 comments

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)

majindageta avatar Feb 16 '18 16:02 majindageta

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.

czerwix avatar May 03 '18 16:05 czerwix

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!

majindageta avatar May 04 '18 07:05 majindageta

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

czerwix avatar May 04 '18 07:05 czerwix

Nice. See this pull too: https://github.com/futuresimple/android-floating-action-button/pull/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!

majindageta avatar May 04 '18 07:05 majindageta