How to set the padding for CardView widget in Android L

后端 未结 4 1444
春和景丽
春和景丽 2020-12-24 10:29

I\'m using android:paddingLeft and android:paddingTop to set the padding for the new CardView widget but it doesn\'t work.

I

4条回答
  •  我在风中等你
    2020-12-24 10:49

    This is what worked for me - putting every item in a frame layout

    
    
       
    

    Double check that card_view is "http://schemas.android.com/apk/res-auto" and not tools, and also set negative margins on the frame view to maintain shadows - works fine.

提交回复
热议问题