UI总说cardview的阴影太黑,故弃用。
上方‘个人信息’用的是shape,下方‘就诊信息’用的是切图
切图
shape
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<padding
android:bottom="@dimen/dp_2"
android:left="@dimen/dp_2"
android:right="@dimen/dp_2"
android:top="@dimen/dp_2" />
<solid android:color="@color/shadow_gray" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding
android:bottom="@dimen/dp_2"
android:left="@dimen/dp_2"
android:right="@dimen/dp_2"
android:top="@dimen/dp_2" />
<solid android:color="@color/shadow_gray" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding
android:bottom="@dimen/dp_2"
android:left="@dimen/dp_2"
android:right="@dimen/dp_2"
android:top="@dimen/dp_2" />
<solid android:color="@color/shadow_gray" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding
android:bottom="@dimen/dp_2"
android:left="@dimen/dp_2"
android:right="@dimen/dp_2"
android:top="@dimen/dp_2" />
<solid android:color="@color/shadow_gray" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<padding
android:bottom="@dimen/dp_2"
android:left="@dimen/dp_2"
android:right="@dimen/dp_2"
android:top="@dimen/dp_2" />
<solid android:color="@color/shadow_gray" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
<item>
<shape>
<solid android:color="@color/white" />
<corners android:radius="@dimen/dp_8" />
</shape>
</item>
</layer-list>
百分之5透明度的灰色
<color name="shadow_gray">#0df4f4f4</color>