Step 1. Create a new drawable.xml and add this code to it
-
-
Step 2.) Now in your dimens.xml add this line of code,
56dp
Step 3.) Finally set this drawable.xml in FAB using *android:src="@drawable/drawable.xml"*
P.S. - Make sure your_icon is a PNG, JPEG.