【问题标题】:Transform extended FAB into standard FAB将扩展 FAB 转换为标准 FAB
【发布时间】:2018-11-02 02:38:30
【问题描述】:

是否有人已经将扩展的 FAB 转换为标准 FAB,反之亦然?我知道如何在我的布局中添加 FAB 以及如何检测列表滚动阈值,但我真的不知道如何实现这种转换(请参阅参考资料以了解我想要做什么:Extented FAB into standard FAB)。

非常感谢

亲切的问候

【问题讨论】:

标签: android material-design floating-action-button


【解决方案1】:

只需为此行为添加 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-23
    • 2020-09-02
    • 1970-01-01
    • 2021-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多