CardView Shadow这样吗?

时间:2017-07-18 19:00:02

标签: android android-cardview

我想这样做。如何得到这样(见下图)?我尝试layer-list但无法获得此视图。

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape  android:shape="rectangle">
            <solid android:color="#afbdc3" />
            <corners android:radius="10dp" />
        </shape>
    </item>
    <item android:right="5px">
        <shape  android:shape="rectangle">
            <solid android:color="#91a5af" />
            <corners android:radius="10dp" />
        </shape>
    </item>
    <item android:right="10px">
        <shape  android:shape="rectangle">
            <solid android:color="#79919d" />
            <corners android:radius="10dp" />
        </shape>
    </item>
</layer-list>

等等

enter image description here

LIKE THIS LAYER

0 个答案:

没有答案