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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">
    <!--<include layout="@layout/plugin_geofence_option"/>-->
    <!--<include layout="@layout/plugin_geofence_map"/>-->
 
 
    <LinearLayout
        android:id="@+id/gd_rl_topview"
        android:layout_width="match_parent"
        android:layout_height="54dp"
        android:background="@color/gd_top_view">
 
 
        <RelativeLayout
            android:id="@+id/gd_btn_back"
            android:layout_width="44dp"
            android:layout_height="54dp"
            >
 
            <ImageView
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_centerInParent="true"
                android:src="@drawable/ic_gdmap_back"/>
        </RelativeLayout>
 
        <TextView
            android:id="@+id/gd_tv_activity_title"
            android:layout_width="match_parent"
            android:layout_height="54dp"
            android:text="@string/gd_activity_title"
            android:gravity="center|left"
            android:textColor="@android:color/black"
            android:textSize="16dp"
            />
 
    </LinearLayout>
 
    <com.amap.api.maps.MapView
        android:id="@+id/gd_mapView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/gd_rl_topview">
    </com.amap.api.maps.MapView>
 
 
 
    <LinearLayout
        android:id="@+id/gd_ll_search"
        android:layout_width="match_parent"
        android:layout_height="40dp"
        android:layout_below="@+id/gd_rl_topview"
        android:layout_marginTop="10dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="80dp"
        android:background="@drawable/gd_click_effect_select"
        android:clickable="true"
        android:visibility="gone"
        >
        
        <ImageView
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:layout_gravity="center"
            android:src="@drawable/ic_gdmap_search"
            android:layout_marginLeft="10dp"/>
 
        <TextView
            android:id="@+id/gd_tv_search_title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:textSize="14sp"
            android:layout_marginLeft="10dp"
            android:layout_gravity="center"
            android:text="@string/gd_search_tip"/>
 
        <ImageView
            android:id="@+id/gd_img_search_delete"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_gravity="center"
            android:src="@drawable/ic_gdmap_delete"
            android:layout_marginLeft="10dp"/>
 
 
    </LinearLayout>
    
    <TextView
        android:id="@+id/gd_tv_radius"
        android:layout_width="56dp"
        android:layout_height="40dp"
        android:layout_below="@+id/gd_rl_topview"
        android:layout_marginTop="12dp"
        android:background="@drawable/gd_click_effect_select"
        android:layout_alignParentRight="true"
        android:layout_marginRight="20dp"
        android:text="500M"
        android:gravity="center"
        android:textColor="@android:color/black"
        />
 
 
    <LinearLayout
        android:id="@+id/gd_ll_myhome"
        android:layout_width="40dp"
        android:layout_height="50dp"
        android:background="@drawable/gd_click_effect_select"
        android:layout_below="@+id/gd_ll_search"
        android:layout_marginLeft="20dp"
        android:layout_marginTop="12dp"
        android:orientation="vertical">
 
        <ImageView
            android:layout_width="25dp"
            android:layout_height="23dp"
            android:layout_gravity="center"
            android:layout_marginTop="4dp"
            android:src="@drawable/ic_gdmap_home" />
 
        <TextView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_marginTop="2dp"
            android:text="@string/gd_myhome"
            android:textSize="11sp"
            android:textColor="@android:color/black"
            android:gravity="center"/>
 
    </LinearLayout>
 
 
 
 
 
    <TextView
        android:id="@+id/gd_btn_save"
        android:layout_width="match_parent"
        android:layout_height="44dp"
        android:layout_marginLeft="30dp"
        android:layout_marginRight="30dp"
        android:layout_marginBottom="48dp"
        android:orientation="vertical"
        android:layout_alignParentBottom="true"
        android:textColor="#FFFFFF"
        android:gravity="center"
        android:background="@drawable/gd_btn_shape_app_b"
        android:text="@string/gd_save"
        />
 
 
    <RelativeLayout
        android:id="@+id/gd_btn_myLocation"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginLeft="20dp"
        android:layout_marginBottom="20dp"
        android:background="@drawable/gd_click_effect_select"
        android:layout_above="@+id/gd_btn_save"
        >
 
        <ImageView
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_centerInParent="true"
            android:src="@drawable/ic_gdmap_mylocation"/>
    </RelativeLayout>
 
 
</RelativeLayout>