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

后端 未结 2 1443
花落未央
花落未央 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:49

    In order to achieve that effect, the card layout should be inside the collapsing toolbar.

    Try replacing this:

    
    

    with:

    
    

    and remove in the NestedScrollView.

    Hope this helps.

提交回复
热议问题