CardView 简易用法

来源:互联网 发布:pingfang sc for mac 编辑:程序博客网 时间:2024/06/03 11:09
<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 :卡片的圆角半径-->

0 0
原创粉丝点击