I want to make my FloatingActionButton lot bigger with custom width and height. I find out that this is possible only if I add this as a child in FrameLayout or in CoordinatorLayout . On Lollipop and Marshmallow, it looks good. But on pre-Lollipop, the shadow from FloatingActionButton very strange. Is this a bug from Android, or did I do something wrong?
<android.support.design.widget.CoordinatorLayout android:id="@+id/help_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true"> <android.support.design.widget.FloatingActionButton android:id="@+id/my_btn" android:layout_width="150dp" android:layout_height="150dp" android:layout_gravity="center" android:src="@mipmap/ic_launcher" /> </android.support.design.widget.CoordinatorLayout>
I also tried adding app:borderWidth="0dp" , but no luck.
Here's what it looks like in Kitkat:

source share