I wanted to implement shadow to FloatingActionButton
. I saw some solution saying to add app:borderWidth="0dp"
, but that didn't work for me.
I couldn't find any solution to add shadow to the button.
This is my FloatingActionButton
:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
app:backgroundTint="@color/colorFab"
app:borderWidth="0dp"
app:elevation="6dp"
app:fabSize="normal"
app:pressedTranslationZ="12dp" />
How can I implement shadow to this FloatingActionButton
?
Thanks in advance.