Adjust icon size of Floating action button (fab)

后端 未结 11 1308
名媛妹妹
名媛妹妹 2020-11-29 17:21

\"Floating The new floating action button should be 56dp x 56dp and the icon inside it should

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 17:48

    The design guidelines defines two sizes and unless there is a strong reason to deviate from using either, the size can be controlled with the fabSize XML attribute of the FloatingActionButton component.

    Consider specifying using either app:fabSize="normal" or app:fabSize="mini", e.g.:

    
    

提交回复
热议问题