Part of the content of a CollapsingToolbarLayout is getting sticky on top, when used with viewpager and recyclerview

后端 未结 2 1422
花落未央
花落未央 2021-01-12 01:56

I am trying to implement a layout like this:

The issue is that when scrolling up the card touches the toolbar and it does not go up anymore like this

2条回答
  •  失恋的感觉
    2021-01-12 02:53

    Finally Solved my issue. I added the card inside the collapsing layout like Kalyans answer and added a dummy view and a -ve margin to the card to have the overlap behavior effect like

    
    
        
    
            
    
            
    
            
        
    
    
    

    I have also pushed my code to the github.

提交回复
热议问题