How to use a TabLayout with Toolbar inside CollapsingToolbarLayout?

后端 未结 18 2254
逝去的感伤
逝去的感伤 2020-11-27 11:46

I am looking at the chrisbanes/cheesesquare and I am trying to put TabLayout with a Toolbar inside a CollapsingToolbarLayout, and here is my code



        
18条回答
  •  醉梦人生
    2020-11-27 12:22

    I was able to get this working by placing the TabLayout inside a second CollapsingToolbarLayout with the scroll flag set to enter Always Collapsed.

    
    
        
    
            
    
            
        
    
        
    
            
    
        
    
    
    
    
        
    
    
    

提交回复
热议问题