HDL_Widget Android和iOS精简版的库,去掉高德SDK,和iOS裁剪方法
JLChen
2021-01-08 07a4e46efd0d180f881a9761c6f737e5d1c47848
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
 
    <!-- 阴影 -->
 
    <item>
        <shape android:shape="rectangle" >
 
            <gradient
                android:type="linear"
                android:endColor="#0f000000"
                android:startColor="#0f000000"
                />
 
            <corners
                android:bottomLeftRadius="5dp"
                android:bottomRightRadius="5dp"
                android:topLeftRadius="5dp"
                android:topRightRadius="5dp" />
        </shape>
    </item>
 
 
    <!-- 背景 -->
    <!-- 背景盖在阴影上面,留出边距让阴影显示出来 -->
    <item
        android:bottom="3dp"
        android:right="1dp"
        android:left="1dp"
        android:top="0dp"
        >
        <shape android:shape="rectangle" >
 
            <solid android:color="#ffffff"/>
 
            <corners
                android:bottomLeftRadius="5dp"
                android:bottomRightRadius="5dp"
                android:topLeftRadius="5dp"
                android:topRightRadius="5dp" />
        </shape>
    </item>
 
</layer-list>