setExpanded

abstract fun setExpanded(expanded: Boolean)

设置控制此 FAB 的展开状态。 在展开状态下,FAB 将同时显示图标和文本。在折叠状态下,FAB 将仅显示图标。

Parameters

expanded

是否展开。