最佳答案
你可以去android的设计库。将此 gradle 添加到您的构建文件中
compile 'com.android.support:design:23.0.1'
并关注this链接,这是一个 stackoverflow 链接,告诉您如何使用。和 this is示例应用程序的链接。
示例:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:clickable="true"
android:src="@drawable/ic_done"
app:layout_anchor="@id/viewA"
app:layout_anchorGravity="bottom|right|end"/>
您可以创建多个 fab 并使用它的可见性
更新
我认为您必须使用第三方库来执行此操作。请通过this图书馆,这可能对你有帮助
关于Android float 操作按钮选项菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32943890/