Floating Action Button not showing fully inside a fragment

前端 未结 9 540
再見小時候
再見小時候 2020-12-04 09:11

I am using FAB button along with RecyclerView in a Fragment. This Fragment is an instance of a TabViewPager. I am having a issue with the FAB button. I have placed the Recyc

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 09:53

    1. I had same problem that the FloatingActionButton was completely invisible, and it was off the screen in the bottom. When I scroll down it comes up.
    2. Also, the tabs were getting hidden when scrolled down but I wanted them to be visible always so I fixed it by removing app:layout_scrollFlags="scroll|enterAlways". Credits to JDev at how to avoid hiding the tabs when scrolled down?
      This resolved the FloatingActionButton issue also, it's visible now.

提交回复
热议问题