Commit da49c271d72f286ac813d25879a17764fde4f04a

Authored by 杨帅
1 parent cbb3898a

1 修改我的记录-绿色卡片UI控件排版

moudle_pedometer/src/main/res/layout/fragment_self_record.xml
@@ -17,29 +17,27 @@ @@ -17,29 +17,27 @@
17 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
18 android:layout_centerVertical="true" 18 android:layout_centerVertical="true"
19 android:padding="10dp" 19 android:padding="10dp"
20 - android:src="@drawable/top_back_black"/> 20 + android:src="@drawable/top_back_black" />
21 21
22 <TextView 22 <TextView
23 android:layout_width="wrap_content" 23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content" 24 android:layout_height="wrap_content"
25 - android:layout_centerVertical="true"  
26 - android:textColor="#333333"  
27 - android:textSize="18sp"  
28 android:layout_centerInParent="true" 25 android:layout_centerInParent="true"
  26 + android:layout_centerVertical="true"
29 android:text="@string/myrecord" 27 android:text="@string/myrecord"
30 - /> 28 + android:textColor="#333333"
  29 + android:textSize="18sp" />
31 30
32 <TextView 31 <TextView
33 android:id="@+id/again_up" 32 android:id="@+id/again_up"
34 android:layout_width="wrap_content" 33 android:layout_width="wrap_content"
35 android:layout_height="wrap_content" 34 android:layout_height="wrap_content"
  35 + android:layout_alignParentRight="true"
36 android:layout_centerVertical="true" 36 android:layout_centerVertical="true"
37 android:padding="10dp" 37 android:padding="10dp"
38 - android:textColor="#333333"  
39 - android:textSize="15sp"  
40 - android:layout_alignParentRight="true"  
41 android:text="@string/again_up" 38 android:text="@string/again_up"
42 - /> 39 + android:textColor="#333333"
  40 + android:textSize="15sp" />
43 </RelativeLayout> 41 </RelativeLayout>
44 42
45 <RelativeLayout 43 <RelativeLayout
@@ -75,18 +73,17 @@ @@ -75,18 +73,17 @@
75 android:textColor="@color/white" 73 android:textColor="@color/white"
76 android:textSize="50sp" /> 74 android:textSize="50sp" />
77 75
78 - <RelativeLayout 76 + <LinearLayout
79 android:id="@+id/ry_finish" 77 android:id="@+id/ry_finish"
80 android:layout_width="match_parent" 78 android:layout_width="match_parent"
81 android:layout_height="wrap_content" 79 android:layout_height="wrap_content"
82 - android:layout_below="@id/kilometer_num"  
83 - android:layout_marginLeft="20dp"  
84 - android:layout_marginTop="10dp"  
85 - android:layout_marginRight="20dp">  
86 - 80 + android:layout_below="@id/kilometer_num">
  81 + <!---->
87 <LinearLayout 82 <LinearLayout
88 - android:layout_width="wrap_content"  
89 - android:layout_height="wrap_content" 83 + android:layout_width="0dp"
  84 + android:layout_height="match_parent"
  85 + android:layout_weight="1"
  86 + android:gravity="center"
90 android:orientation="vertical"> 87 android:orientation="vertical">
91 88
92 <TextView 89 <TextView
@@ -107,12 +104,11 @@ @@ -107,12 +104,11 @@
107 android:textColor="@color/white" 104 android:textColor="@color/white"
108 android:textSize="20sp" /> 105 android:textSize="20sp" />
109 </LinearLayout> 106 </LinearLayout>
110 -  
111 - 107 + <!---->
112 <LinearLayout 108 <LinearLayout
113 - android:layout_width="wrap_content"  
114 - android:layout_height="wrap_content"  
115 - android:layout_centerInParent="true" 109 + android:layout_width="0dp"
  110 + android:layout_height="match_parent"
  111 + android:layout_weight="1"
116 android:orientation="vertical"> 112 android:orientation="vertical">
117 113
118 <TextView 114 <TextView
@@ -133,11 +129,11 @@ @@ -133,11 +129,11 @@
133 android:textColor="@color/white" 129 android:textColor="@color/white"
134 android:textSize="20sp" /> 130 android:textSize="20sp" />
135 </LinearLayout> 131 </LinearLayout>
136 - 132 + <!---->
137 <LinearLayout 133 <LinearLayout
138 - android:layout_width="wrap_content"  
139 - android:layout_height="wrap_content"  
140 - android:layout_alignParentRight="true" 134 + android:layout_width="0dp"
  135 + android:layout_height="match_parent"
  136 + android:layout_weight="1"
141 android:orientation="vertical"> 137 android:orientation="vertical">
142 138
143 <TextView 139 <TextView
@@ -158,19 +154,21 @@ @@ -158,19 +154,21 @@
158 android:textColor="@color/white" 154 android:textColor="@color/white"
159 android:textSize="20sp" /> 155 android:textSize="20sp" />
160 </LinearLayout> 156 </LinearLayout>
161 - </RelativeLayout>  
162 -  
163 - <RelativeLayout 157 + <!---->
  158 + </LinearLayout>
  159 + <!---->
  160 + <!--未完成-->
  161 + <LinearLayout
164 android:layout_width="match_parent" 162 android:layout_width="match_parent"
165 android:layout_height="wrap_content" 163 android:layout_height="wrap_content"
166 android:layout_below="@id/ry_finish" 164 android:layout_below="@id/ry_finish"
167 - android:layout_marginLeft="20dp"  
168 - android:layout_marginTop="10dp"  
169 - android:layout_marginRight="20dp">  
170 - 165 + android:layout_marginTop="10dp">
  166 + <!---->
171 <LinearLayout 167 <LinearLayout
172 - android:layout_width="wrap_content"  
173 - android:layout_height="wrap_content" 168 + android:layout_width="0dp"
  169 + android:layout_height="match_parent"
  170 + android:layout_weight="1"
  171 + android:gravity="center"
174 android:orientation="vertical"> 172 android:orientation="vertical">
175 173
176 <TextView 174 <TextView
@@ -191,12 +189,11 @@ @@ -191,12 +189,11 @@
191 android:textColor="@color/white" 189 android:textColor="@color/white"
192 android:textSize="20sp" /> 190 android:textSize="20sp" />
193 </LinearLayout> 191 </LinearLayout>
194 -  
195 - 192 + <!---->
196 <LinearLayout 193 <LinearLayout
197 - android:layout_width="wrap_content"  
198 - android:layout_height="wrap_content"  
199 - android:layout_centerInParent="true" 194 + android:layout_width="0dp"
  195 + android:layout_height="match_parent"
  196 + android:layout_weight="1"
200 android:orientation="vertical"> 197 android:orientation="vertical">
201 198
202 <TextView 199 <TextView
@@ -217,11 +214,11 @@ @@ -217,11 +214,11 @@
217 android:textColor="@color/white" 214 android:textColor="@color/white"
218 android:textSize="20sp" /> 215 android:textSize="20sp" />
219 </LinearLayout> 216 </LinearLayout>
220 - 217 + <!---->
221 <LinearLayout 218 <LinearLayout
222 - android:layout_width="wrap_content"  
223 - android:layout_height="wrap_content"  
224 - android:layout_alignParentRight="true" 219 + android:layout_width="0dp"
  220 + android:layout_height="match_parent"
  221 + android:layout_weight="1"
225 android:orientation="vertical"> 222 android:orientation="vertical">
226 223
227 <TextView 224 <TextView
@@ -242,7 +239,8 @@ @@ -242,7 +239,8 @@
242 android:textColor="@color/white" 239 android:textColor="@color/white"
243 android:textSize="20sp" /> 240 android:textSize="20sp" />
244 </LinearLayout> 241 </LinearLayout>
245 - </RelativeLayout> 242 + <!---->
  243 + </LinearLayout>
246 244
247 </RelativeLayout> 245 </RelativeLayout>
248 246
@@ -260,7 +258,7 @@ @@ -260,7 +258,7 @@
260 android:text="@string/has_take_part_line" 258 android:text="@string/has_take_part_line"
261 android:textColor="#333333" 259 android:textColor="#333333"
262 android:textSize="18sp" /> 260 android:textSize="18sp" />
263 - 261 +
264 <LinearLayout 262 <LinearLayout
265 android:layout_width="wrap_content" 263 android:layout_width="wrap_content"
266 android:layout_height="wrap_content" 264 android:layout_height="wrap_content"
@@ -271,19 +269,18 @@ @@ -271,19 +269,18 @@
271 android:id="@+id/has_finish" 269 android:id="@+id/has_finish"
272 android:layout_width="wrap_content" 270 android:layout_width="wrap_content"
273 android:layout_height="wrap_content" 271 android:layout_height="wrap_content"
274 - android:textSize="18sp" 272 + android:text="@string/finish"
275 android:textColor="#36C28D" 273 android:textColor="#36C28D"
276 - android:text="@string/finish" /> 274 + android:textSize="18sp" />
277 275
278 <TextView 276 <TextView
279 android:id="@+id/no_finish" 277 android:id="@+id/no_finish"
280 android:layout_width="wrap_content" 278 android:layout_width="wrap_content"
281 android:layout_height="wrap_content" 279 android:layout_height="wrap_content"
282 - android:text="@string/no_finish"  
283 android:layout_marginLeft="20dp" 280 android:layout_marginLeft="20dp"
  281 + android:text="@string/no_finish"
284 android:textColor="#333333" 282 android:textColor="#333333"
285 - android:textSize="15sp"  
286 - /> 283 + android:textSize="15sp" />
287 </LinearLayout> 284 </LinearLayout>
288 </RelativeLayout> 285 </RelativeLayout>
289 286