FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

background should dim when floating button is clicked

Open KMseven opened this issue 8 years ago • 6 comments

how to make background dim when floating mennu button is clicked.I tried on setonclosedtouchoutside() but it didnt work

KMseven avatar Sep 22 '16 07:09 KMseven

Use app:menu_backgroundColor with a transparent color. For example:

<com.github.clans.fab.FloatingActionMenu
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:menu_backgroundColor="#CCFFFFFF"`/>

michaeltnguyen avatar Sep 27 '16 18:09 michaeltnguyen

If you set the width and height to match_parent you will not be able to interact with anything underneath the menu.

Gagege avatar Feb 27 '17 15:02 Gagege

Hi, i have this problem. What can I do to fix? thank you

screenshot_2017-03-06-17-27-15

ant-ia avatar Mar 06 '17 21:03 ant-ia

@ant-ia You can use padding instead of margin like so:

android:paddingBottom="8dp"
android:paddingEnd="8dp"

camclendenin avatar Mar 07 '17 19:03 camclendenin

Hi @camclendenin Thank u for the reply. it's possible to dim also the status bar?

ant-ia avatar Mar 08 '17 13:03 ant-ia

@ant-ia I've the same question, Do you have solution for that?

dainq57 avatar Jun 20 '17 04:06 dainq57