Code Snippet:
Here,
1. app:backgroundTint is used to color background of the fab
button.
2. android:src="@drawable/baseline_favorite_white_dp" is source of
the icon.
3. android:layout_gravity="end|bottom", set the position of the fab to right & bottom of the of the parent layout.
4. android:tint="@color/app_white", to color icon as tint color.
Here, The design looks like below picture.
2. android:src="@drawable/baseline_favorite_white_dp" is source of
the icon.
3. android:layout_gravity="end|bottom", set the position of the fab to right & bottom of the of the parent layout.
4. android:tint="@color/app_white", to color icon as tint color.
Here, The design looks like below picture.