How can I change the floating action menu icon?
See original GitHub issueI have tried to add the fab:fab_icon
just like on floating buttons, but it does not seem to work. Is there any way to change the background image on the floating menu also, except the buttons?
<com.getbase.floatingactionbutton.FloatingActionsMenu
android:id="@+id/left_labels"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/mapstyle"
fab:fab_addButtonColorNormal="@color/white"
fab:fab_addButtonColorPressed="@color/white_pressed"
fab:fab_addButtonPlusIconColor="@color/half_black"
fab:fab_expandDirection="down"
fab:fab_icon="@drawable/map_marker"
fab:fab_labelStyle="@style/menu_labels_style"
fab:fab_labelsPosition="left">
<com.getbase.floatingactionbutton.FloatingActionButton
android:id="@+id/alle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
fab:fab_colorNormal="@color/white_transparent"
fab:fab_colorPressed="@color/white_pressed"
fab:fab_icon="@drawable/map_marker"
fab:fab_size="mini"
fab:fab_title="Alle" />
</com.getbase.floatingactionbutton.FloatingActionsMenu>
Thank you in advance for your time and effort.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:12
Top Results From Across the Web
Change image Floating Action Button Android - Stack Overflow
java file (programmatically) set menu button (color button, color pressed button and image). Then simply add all buttons to the menu button. You...
Read more >How to Change Icon Color of Floating Action Button in Android?
To change the icon color of Floating Action Button in layout file, set the app:tint attribute with the required color value as shown...
Read more >Android Question Change icon for Floating Action Menu (FAM)
Hi All, This is in relation to this library. Has anyone changed the default '+' icon that is displayed on the action menu...
Read more >Floating Action Buttons | CodePath Android Cliffnotes
The floating action button uses the same menu icons used for the App Bar at the top of the screen. This means the...
Read more >Add a Floating Action Button - Android Developers
Add the floating action button to your layout · The size of the FAB, using the app:fabSize attribute or the setSize() method. ·...
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
Please use: … android:src=“@android:drawable/ic_menu_share” … Don’t use “fab:icon…”, but instead use “android:src…” It works for me👍 X5ibnouf
Trying this library, you can use custom icon for menu button by using: fab:fab_menuIcon=“@drawable/myIcon”
https://github.com/toanvc/FloatingActionMenu-Animation