Commit da49c271d72f286ac813d25879a17764fde4f04a

Authored by 杨帅
1 parent cbb3898a

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

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