I am using the FloatingActionButton in a CoordinatorLayout:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="@color/white"
app:fabSize="normal"
app:layout_anchor="@+id/view_pager_imageformat_carousel"
app:layout_anchorGravity="bottom|end"
app:srcCompat="@drawable/ic_playlist_add_black_24dp"
app:useCompatPadding="true" />
and it works fine with most Android Apis, but in Android 5 and 5.1 it shows a boxed shadow when it is pressed:
I tried setting clipChildren to false in the CoordinatorLayout, without any effect and looked through other available options wihtout success so far.
Has anyone encountered the same problem and came up with a solution?