<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="200dp" android:layout_gravity="center" card:cardBackgroundColor="@android:color/white" card:cardCornerRadius="0dp" card:cardElevation="2dp" card:cardPreventCornerOverlap="true" card:cardUseCompatPadding="true" card:cardMaxElevation="@dimen/cardview_default_elevation"> <!--cardMaxElevation:最大卡片阴影的宽度--> <!--cardElevation:卡片阴影的宽度--> <!--cardBackgroundColor:卡片的背景颜色--><!--cardCornerRadius :卡片的圆角半径-->
CardView 简易用法

最新推荐文章于 2021-08-12 18:31:12 发布
