How to implement the Material-design Elevation for Pre-lollipop

前端 未结 7 1455
南旧
南旧 2020-11-27 11:44

Google has shown some nice ways that elevation effect are shown on Lollipop here.

android:elevation=\"2dp\"

for buttons,

an         


        
7条回答
  •  执念已碎
    2020-11-27 12:25

    u can easily simulate it by declaring a drawable like this -

    shadow.xml

    
    
    
        
    
    
    
    

    and use it int ur main xml like -

     android:background="@drawable/shadow"
    

提交回复
热议问题