Add elevation/shadow on toolbar for pre-lollipop devices

前端 未结 8 1300
猫巷女王i
猫巷女王i 2020-11-28 05:39

I updated my android app to the new material design, but I also wanted to add some shadow or elevation to the Toolbar. There seem to be some (hacky) ways of doing it via ima

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 06:06

    Try using the AppBarLayout inside the activity layout. Try:

    
    
    
        
    
            
        
    
        
    
    

    Toolbar.xml

    
    
    

提交回复
热议问题