Floating Action Button not showing fully inside a fragment

前端 未结 9 558
再見小時候
再見小時候 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:55

    I just ran into the same problem. Unfortunately, I don't have an answer for you, but some addon point.

    It is not that the button is pushed down, it's the whole fragment been pushed down. I haven't test it so far, but I imagine, if there is a way that enables you to see the size of the fragment page, you'll see it doesn't end at the bottom of the screen as it should be.

    for possible solution, I'm think about adding a padding of size "?attr/actionBarSize" at the bottom.

    I'll test this, and post back when finish

    update: As I used a border of 80 dp, get a screen shot (I dont have 10 reputation to post a screen shot, wth)

    workaround:

    
            
    
                
    
            
    
            
                
                
                
                
    
            
            
    
        
    

    notic app:layout_behavior="@string/appbar_scrolling_view_behavior" been taken out. result

提交回复
热议问题