Cast shadow on top of LinearLayout using android:elevation

前端 未结 4 993
轻奢々
轻奢々 2020-12-09 15:48

I have this LinearLayout that is going to be placed on the bottom of an activity layout. I want this LinearLayout to have a 4dp elevation, just lik

4条回答
  •  温柔的废话
    2020-12-09 16:15

    Add this code above of view in which you want top elevation or add android:layout_marginTop="-4dp" and add below of above view

    
    

提交回复
热议问题