更改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.
本文介绍了如何通过修改Android项目的dimensions.xml文件来调整Floating Action Button (FAB) 的大小。提供了具体的XML配置示例,包括mini FAB和常规FAB的尺寸设置。
876

被折叠的 条评论
为什么被折叠?



