FloatingActionButton
FloatingActionButton copied to clipboard
background should dim when floating button is clicked
how to make background dim when floating mennu button is clicked.I tried on setonclosedtouchoutside() but it didnt work
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"`/>
If you set the width and height to match_parent you will not be able to interact with anything underneath the menu.
Hi, i have this problem. What can I do to fix? thank you
@ant-ia You can use padding
instead of margin
like so:
android:paddingBottom="8dp"
android:paddingEnd="8dp"
Hi @camclendenin Thank u for the reply. it's possible to dim also the status bar?
@ant-ia I've the same question, Do you have solution for that?