android - 关闭 float 操作按钮 Android

标签 android floating-action-button

我使用了以下库 https://github.com/futuresimple/android-floating-action-button一切正常。
单击同一菜单上的其中一个按钮后如何自动关闭菜单?

最佳答案

它的开源库,你可以阅读source code并自己找到它。

FloatingActionsMenu.collapse(); // close the menu
FloatingActionsMenu.toggle(); // toggle the menu
FloatingActionsMenu.expand(); // open the mneu

Menu ItemClick listener 中调用 .collapse()

关于android - 关闭 float 操作按钮 Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30120749/

相关文章:

android - 隐藏在抽屉导航后面的 float 操作按钮

java - Android - 如何以编程方式创建 FAB?

android - 将FAB链接到FAB行为类

android - 是否可以在 React Native 中使用 ExcelJS?

Android:确定ActionBar Tab的高度

android - android 中 libGoogleAnalytics.jar 的 javadoc.zip

javascript - 在 html 中使用多个页面时,$(window).scroll 不会触发事件

android - 如何以编程方式打开和关闭 layout_behavior 行为?

android - 如何在谷歌地图中添加标记?

android - 在没有 gradle 的 IntelliJ IDEA 中添加 AAR