我有兴趣在多个片段中实现FloatingActionButton或FAB.当片段改变时,FAB的图标应该改变,然后按钮显然应该做与该特定片段有关的事情,但是为了无缝显示,FAB位于主活动内而不是每片段.
这样做最恰当和/或最有效的方法是什么?
我无法绕过它...我试图在Fragment中实现监听器,对于Activity中的点击,但它说的是听众是 周期性的
谢谢
android android-fragmentactivity floating-action-button
android ×1
android-fragmentactivity ×1
floating-action-button ×1