是否有人已经实现了将扩展 FAB 转换为标准 FAB,反之亦然?我知道如何将 FAB 添加到我的布局中以及如何检测列表滚动阈值,但我真的不知道如何实现这种转换(请参阅引用资料以了解我想做什么:Extented FAB into standard FAB)。
非常感谢
亲切的问候
最佳答案
只需为此行为添加 2 行神奇代码此代码仅适用于 ExtendedFloatingActionButton
floatingButton.shrink(); ///This line of code hide text and show Icon of floating buttion
floatingButton.extend()///This line of code show text and icon of floating button
关于android - 将扩展 FAB 转换为标准 FAB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50482726/