更改icon的大小
<!--Floating action button-->
<dimen name="design_fab_image_size" tools:override="true">36dp</dimen>
更改fab大小
You can try to redefine the maximum size of the fab image size in your dimensions.xml:
<resources xmlns:tools="http://schemas.android.com/tools">
<dimen name="design_fab_size_mini" tools:override="true">80dp</dimen>
<dimen name="design_fab_content_size" tools:override="true">48dp</dimen>
</resources>
Must make sure you override the original resources in the Design Library. Try design_fab_image_size instead of design_fab_content_size if this does not work for you.