Show/Hide FloatingActionButton on ViewPager swipe

后端 未结 2 695
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-08 16:13

I have an activity that has 3 tabs. Each tabs page is a fragment which displays a RecyclerView. One of the fragment has FloatingActionButton in it. I\'m implementing this Button

2条回答
  •  抹茶落季
    2021-02-08 16:25

    Add

    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    

    to the RecyclerView too.

提交回复
热议问题