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 can I change the floating action menu icon?

See original GitHub issue

I 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:open
  • Created 7 years ago
  • Reactions:6
  • Comments:12

github_iconTop GitHub Comments

15reactions
ibnouf88commented, May 17, 2016

Please use: … android:src=“@android:drawable/ic_menu_share” … Don’t use “fab:icon…”, but instead use “android:src…” It works for me👍 X5ibnouf

2reactions
toanvccommented, Jun 25, 2016

Trying this library, you can use custom icon for menu button by using: fab:fab_menuIcon=“@drawable/myIcon

https://github.com/toanvc/FloatingActionMenu-Animation

Read more comments on GitHub >

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

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