bhuthecoder bhuthecoder - 19 days ago 8
Android Question

How to remove grey shadow color below FloatingActionButton

I am getting light grey color below the

FloatingActionButton
as shown in image. Any one know how to remove it. I tested it on Lollipop version.

My xml code

<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:src="@drawable/ic_add_black"
app:borderWidth="0dp"
app:fabSize="mini"
app:rippleColor="@color/colorPrimaryDark" />


Floating action button

Answer

Try set elevation:

app:elevation="0dp"