How to avoid blocking of scrolling itself when using setNestedScrollingEnabled(false)?

后端 未结 8 1829
盖世英雄少女心
盖世英雄少女心 2020-12-30 01:07

Background

We have quite a complex layout that has CollapsingToolbarLayout in it, together with a RecyclerView at the bottom.

In certain cases, we tempora

8条回答
  •  天涯浪人
    2020-12-30 01:49

    As @Moinkhan points out, you could try wrapping the RecyclerView and next elements in a NestedScrollView like this, this should resolve your problem of scrolling alongside with your collapsing toolbar layout:

    
    
        
    
            
    
                
    
            
        
    
        
    
            
    
                
    
            
    
        
    
        
    
            

    In case the contents of the recyclerview are not displayed you can follow this thread to solve that issue How to use RecyclerView inside NestedScrollView?.

    Hope it helps.

提交回复
热议问题