tmo*_*oni 3 android material-design floating-action-button
是否有人已经实现将扩展 FAB 转换为标准 FAB,反之亦然?我知道如何将 FAB 添加到我的布局中以及如何检测列表滚动阈值,但我真的不知道如何实现此转换(请参阅参考资料以了解我想要做什么:将 FAB 扩展为标准 FAB) 。
万分感谢
亲切的问候
小智 5
只需为此行为添加 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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1349 次 |
| 最近记录: |