Commit 983fa564c5ad626d8477b4b619408a31d0a05a11
1 parent
e02ba35f
1.;跑步结束页面
Showing
48 changed files
with
230 additions
and
130 deletions
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunMainFragmentView.java
| @@ -183,7 +183,7 @@ public class RunMainFragmentView implements MvpView { | @@ -183,7 +183,7 @@ public class RunMainFragmentView implements MvpView { | ||
| 183 | public void onClick(View view) { | 183 | public void onClick(View view) { |
| 184 | //继续记录轨迹 | 184 | //继续记录轨迹 |
| 185 | if (StepService.mClient != null && StepService.traceListener != null) { | 185 | if (StepService.mClient != null && StepService.traceListener != null) { |
| 186 | - StepService.mClient.startGather(StepService.traceListener); | 186 | + StepService.mClient.startTrace(StepService.mTrace,StepService.traceListener); |
| 187 | } | 187 | } |
| 188 | needWriteDataFlag = true; | 188 | needWriteDataFlag = true; |
| 189 | //将当前计时器时间戳写入数据库 | 189 | //将当前计时器时间戳写入数据库 |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunningMapFragmentView.java
| @@ -275,8 +275,7 @@ public class RunningMapFragmentView implements MvpView, SensorEventListener { | @@ -275,8 +275,7 @@ public class RunningMapFragmentView implements MvpView, SensorEventListener { | ||
| 275 | LatLng lastLatLng = currentPoints.get(currentPoints.size() - 1); | 275 | LatLng lastLatLng = currentPoints.get(currentPoints.size() - 1); |
| 276 | LatLng curLatLng = new LatLng(location.getLatitude(), | 276 | LatLng curLatLng = new LatLng(location.getLatitude(), |
| 277 | location.getLongitude()); | 277 | location.getLongitude()); |
| 278 | - Log.e(TAG, "onReceiveLocation: 距离:" + DistanceUtil.getDistance(lastLatLng, curLatLng)); | ||
| 279 | - if (DistanceUtil.getDistance(lastLatLng, curLatLng) > 1) { | 278 | + if (DistanceUtil.getDistance(lastLatLng, curLatLng) > 0.5) { |
| 280 | currentPoints.add(curLatLng); | 279 | currentPoints.add(curLatLng); |
| 281 | } | 280 | } |
| 282 | } else { | 281 | } else { |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/service/StepService.java
| @@ -160,7 +160,7 @@ public class StepService extends Service implements SensorEventListener { | @@ -160,7 +160,7 @@ public class StepService extends Service implements SensorEventListener { | ||
| 160 | /** | 160 | /** |
| 161 | * 轨迹服务 | 161 | * 轨迹服务 |
| 162 | */ | 162 | */ |
| 163 | - public Trace mTrace = null; | 163 | + public static Trace mTrace = null; |
| 164 | 164 | ||
| 165 | public StepService() { | 165 | public StepService() { |
| 166 | 166 |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/utils/StepUtil.java
| @@ -95,9 +95,7 @@ public class StepUtil { | @@ -95,9 +95,7 @@ public class StepUtil { | ||
| 95 | if (list != null && list.size() > 0) { | 95 | if (list != null && list.size() > 0) { |
| 96 | Log.e(TAG, "clearRunData: " + list.size()); | 96 | Log.e(TAG, "clearRunData: " + list.size()); |
| 97 | // for (int i = 0; i < list.size(); i++) { | 97 | // for (int i = 0; i < list.size(); i++) { |
| 98 | - DbCore.getDaoSession().getUserStepEntityDao().deleteInTx(list); | ||
| 99 | - DbCore.getDaoSession().getUserStepEntityDao().detachAll(); | ||
| 100 | - DbCore.getDaoSession().clear(); | 98 | + DbCore.getDaoSession().getUserStepEntityDao().deleteByKey(list.get(0).getUuid()); |
| 101 | // } | 99 | // } |
| 102 | } | 100 | } |
| 103 | } | 101 | } |
moudle_pedometer/src/main/res/drawable-hdpi/bg_tips_bottom_center.9.png deleted
100644 → 0
2.04 KB
moudle_pedometer/src/main/res/drawable-hdpi/bg_tips_bottom_center.png
0 → 100644
765 Bytes
moudle_pedometer/src/main/res/drawable-hdpi/crown.png
0 → 100644
915 Bytes
moudle_pedometer/src/main/res/drawable-hdpi/more.png
0 → 100644
414 Bytes
moudle_pedometer/src/main/res/drawable-hdpi/rt_ic_home_map.png
0 → 100644
7.73 KB
moudle_pedometer/src/main/res/drawable-hdpi/rt_ic_home_map.webp deleted
100644 → 0
No preview for this file type
moudle_pedometer/src/main/res/drawable-hdpi/rt_training_button_pause.png
0 → 100644
252 Bytes
moudle_pedometer/src/main/res/drawable-hdpi/rt_training_button_pause.webp deleted
100644 → 0
No preview for this file type
moudle_pedometer/src/main/res/drawable-hdpi/rt_training_button_resume.png
0 → 100644
443 Bytes
moudle_pedometer/src/main/res/drawable-hdpi/rt_training_button_resume.webp deleted
100644 → 0
No preview for this file type
moudle_pedometer/src/main/res/drawable-hdpi/rt_training_button_stop.png
moudle_pedometer/src/main/res/drawable-hdpi/sport_speed.png
0 → 100644
1.8 KB
moudle_pedometer/src/main/res/drawable-hdpi/sport_step.png
0 → 100644
2.02 KB
moudle_pedometer/src/main/res/drawable-hdpi/sport_time_cost.png
0 → 100644
1.86 KB
moudle_pedometer/src/main/res/drawable-xhdpi/bg_tips_bottom_center.png
0 → 100644
968 Bytes
moudle_pedometer/src/main/res/drawable-xhdpi/crown.png
0 → 100644
1.07 KB
moudle_pedometer/src/main/res/drawable-xhdpi/more.png
0 → 100644
459 Bytes
moudle_pedometer/src/main/res/drawable-xhdpi/rt_ic_home_map.png
0 → 100644
7.52 KB
moudle_pedometer/src/main/res/drawable-xhdpi/rt_training_button_pause.png
0 → 100644
152 Bytes
moudle_pedometer/src/main/res/drawable-xhdpi/rt_training_button_resume.png
0 → 100644
555 Bytes
moudle_pedometer/src/main/res/drawable-xhdpi/rt_training_button_stop.png
0 → 100644
130 Bytes
moudle_pedometer/src/main/res/drawable-xhdpi/sport_speed.png
0 → 100644
1.9 KB
moudle_pedometer/src/main/res/drawable-xhdpi/sport_step.png
0 → 100644
2.15 KB
moudle_pedometer/src/main/res/drawable-xhdpi/sport_time_cost.png
0 → 100644
1.97 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/bg_tips_bottom_center.png
0 → 100644
1.79 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/crown.png
0 → 100644
1.85 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/more.png
0 → 100644
776 Bytes
moudle_pedometer/src/main/res/drawable-xxhdpi/rt_ic_home_map.png
0 → 100644
23.2 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/rt_training_button_pause.png
0 → 100644
427 Bytes
moudle_pedometer/src/main/res/drawable-xxhdpi/rt_training_button_resume.png
0 → 100644
854 Bytes
moudle_pedometer/src/main/res/drawable-xxhdpi/rt_training_button_stop.png
0 → 100644
207 Bytes
moudle_pedometer/src/main/res/drawable-xxhdpi/sport_speed.png
0 → 100644
3.74 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/sport_step.png
0 → 100644
4.42 KB
moudle_pedometer/src/main/res/drawable-xxhdpi/sport_time_cost.png
0 → 100644
3.91 KB
moudle_pedometer/src/main/res/drawable/layer_shadow.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <!--边--> | ||
| 5 | + <item> | ||
| 6 | + <shape android:shape="rectangle"> | ||
| 7 | + <padding | ||
| 8 | + android:bottom="7px" | ||
| 9 | + android:left="7px" | ||
| 10 | + android:right="7px" | ||
| 11 | + android:top="5px" /> | ||
| 12 | + | ||
| 13 | + <solid android:color="#00eeeeee" /> | ||
| 14 | + | ||
| 15 | + <corners android:radius="5dp" /> | ||
| 16 | + </shape> | ||
| 17 | + </item> | ||
| 18 | + <item> | ||
| 19 | + <shape android:shape="rectangle"> | ||
| 20 | + <padding | ||
| 21 | + android:bottom="7px" | ||
| 22 | + android:left="7px" | ||
| 23 | + android:right="7px" | ||
| 24 | + android:top="5px" /> | ||
| 25 | + | ||
| 26 | + <solid android:color="#0Deeeeee" /> | ||
| 27 | + | ||
| 28 | + <corners android:radius="5dp" /> | ||
| 29 | + </shape> | ||
| 30 | + </item> | ||
| 31 | + <item> | ||
| 32 | + <shape android:shape="rectangle"> | ||
| 33 | + <padding | ||
| 34 | + android:bottom="7px" | ||
| 35 | + android:left="7px" | ||
| 36 | + android:right="7px" | ||
| 37 | + android:top="5px" /> | ||
| 38 | + <solid android:color="#0Deeeeee" /> | ||
| 39 | + <corners android:radius="5dp" /> | ||
| 40 | + </shape> | ||
| 41 | + </item> | ||
| 42 | + <item> | ||
| 43 | + <shape android:shape="rectangle"> | ||
| 44 | + <padding | ||
| 45 | + android:bottom="7px" | ||
| 46 | + android:left="7px" | ||
| 47 | + android:right="7px" | ||
| 48 | + android:top="5px" /> | ||
| 49 | + <solid android:color="#0Deeeeee" /> | ||
| 50 | + <corners android:radius="5dp" /> | ||
| 51 | + </shape> | ||
| 52 | + </item> | ||
| 53 | + <item> | ||
| 54 | + <shape android:shape="rectangle"> | ||
| 55 | + <padding | ||
| 56 | + android:bottom="7px" | ||
| 57 | + android:left="7px" | ||
| 58 | + android:right="7px" | ||
| 59 | + android:top="5px" /> | ||
| 60 | + | ||
| 61 | + <solid android:color="#0Deeeeee" /> | ||
| 62 | + <corners android:radius="5dp" /> | ||
| 63 | + </shape> | ||
| 64 | + </item> | ||
| 65 | + | ||
| 66 | + <!--中心背景 --> | ||
| 67 | + <item> | ||
| 68 | + <shape | ||
| 69 | + android:shape="rectangle" | ||
| 70 | + android:useLevel="false"> | ||
| 71 | + <!--实心 --> | ||
| 72 | + <solid android:color="@color/white" /> | ||
| 73 | + <corners android:radius="5dp" /> | ||
| 74 | + <size | ||
| 75 | + android:width="32dp" | ||
| 76 | + android:height="32dp" /> | ||
| 77 | + | ||
| 78 | + </shape> | ||
| 79 | + </item> | ||
| 80 | + | ||
| 81 | +</layer-list> | ||
| 0 | \ No newline at end of file | 82 | \ No newline at end of file |
moudle_pedometer/src/main/res/drawable/shape_gray_round.xml renamed to moudle_pedometer/src/main/res/drawable/shape_white_round.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <shape xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <shape xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <corners android:radius="100dp" /> | 3 | <corners android:radius="100dp" /> |
| 4 | - <solid android:color="@color/gray_round" /> | 4 | + <solid android:color="@color/white" /> |
| 5 | </shape> | 5 | </shape> |
| 6 | \ No newline at end of file | 6 | \ No newline at end of file |
moudle_pedometer/src/main/res/layout/five_persion_icon.xml
| @@ -51,5 +51,5 @@ | @@ -51,5 +51,5 @@ | ||
| 51 | android:layout_width="9dp" | 51 | android:layout_width="9dp" |
| 52 | android:layout_height="15dp" | 52 | android:layout_height="15dp" |
| 53 | android:layout_marginLeft="5dp" | 53 | android:layout_marginLeft="5dp" |
| 54 | - android:background="@drawable/tc_suit_right_arrow" /> | 54 | + android:background="@drawable/more" /> |
| 55 | </LinearLayout> | 55 | </LinearLayout> |
| 56 | \ No newline at end of file | 56 | \ No newline at end of file |
moudle_pedometer/src/main/res/layout/fragment_run_main.xml
| @@ -51,10 +51,10 @@ | @@ -51,10 +51,10 @@ | ||
| 51 | android:layout_width="wrap_content" | 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" | 52 | android:layout_height="wrap_content" |
| 53 | android:layout_marginLeft="10dp" | 53 | android:layout_marginLeft="10dp" |
| 54 | - android:layout_marginTop="15dp" | 54 | + android:layout_marginTop="20dp" |
| 55 | android:text="公里" | 55 | android:text="公里" |
| 56 | android:textColor="@color/white" | 56 | android:textColor="@color/white" |
| 57 | - android:textSize="25sp" /> | 57 | + android:textSize="15sp" /> |
| 58 | </LinearLayout> | 58 | </LinearLayout> |
| 59 | <!--GPS信息--> | 59 | <!--GPS信息--> |
| 60 | <LinearLayout | 60 | <LinearLayout |
| @@ -73,10 +73,10 @@ | @@ -73,10 +73,10 @@ | ||
| 73 | android:layout_width="wrap_content" | 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" | 74 | android:layout_height="wrap_content" |
| 75 | android:layout_centerVertical="true" | 75 | android:layout_centerVertical="true" |
| 76 | - android:layout_marginLeft="15dp" | 76 | + android:layout_marginLeft="20dp" |
| 77 | android:text="GPS" | 77 | android:text="GPS" |
| 78 | android:textColor="@color/white" | 78 | android:textColor="@color/white" |
| 79 | - android:textSize="20sp" | 79 | + android:textSize="18sp" |
| 80 | android:textStyle="bold" /> | 80 | android:textStyle="bold" /> |
| 81 | 81 | ||
| 82 | <TextView | 82 | <TextView |
| @@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
| 88 | android:layout_toRightOf="@id/tv_gps" | 88 | android:layout_toRightOf="@id/tv_gps" |
| 89 | android:text="(点击查看轨迹)" | 89 | android:text="(点击查看轨迹)" |
| 90 | android:textColor="@color/text_gray" | 90 | android:textColor="@color/text_gray" |
| 91 | - android:textSize="15sp" | 91 | + android:textSize="12sp" |
| 92 | android:textStyle="bold" /> | 92 | android:textStyle="bold" /> |
| 93 | 93 | ||
| 94 | <ImageView | 94 | <ImageView |
| @@ -102,7 +102,7 @@ | @@ -102,7 +102,7 @@ | ||
| 102 | <LinearLayout | 102 | <LinearLayout |
| 103 | android:layout_width="match_parent" | 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="wrap_content" | 104 | android:layout_height="wrap_content" |
| 105 | - android:layout_marginTop="15dp"> | 105 | + android:layout_marginTop="35dp"> |
| 106 | 106 | ||
| 107 | <LinearLayout | 107 | <LinearLayout |
| 108 | android:layout_width="0dp" | 108 | android:layout_width="0dp" |
| @@ -112,10 +112,10 @@ | @@ -112,10 +112,10 @@ | ||
| 112 | android:orientation="vertical"> | 112 | android:orientation="vertical"> |
| 113 | 113 | ||
| 114 | <ImageView | 114 | <ImageView |
| 115 | - android:layout_width="30dp" | ||
| 116 | - android:layout_height="30dp" | 115 | + android:layout_width="26dp" |
| 116 | + android:layout_height="23dp" | ||
| 117 | android:layout_marginBottom="5dp" | 117 | android:layout_marginBottom="5dp" |
| 118 | - android:src="@drawable/rt_outdoor_video_pace" /> | 118 | + android:src="@drawable/sport_speed" /> |
| 119 | 119 | ||
| 120 | <LinearLayout | 120 | <LinearLayout |
| 121 | android:layout_width="match_parent" | 121 | android:layout_width="match_parent" |
| @@ -140,7 +140,7 @@ | @@ -140,7 +140,7 @@ | ||
| 140 | android:gravity="center" | 140 | android:gravity="center" |
| 141 | android:text="配速" | 141 | android:text="配速" |
| 142 | android:textColor="@color/text_gray" | 142 | android:textColor="@color/text_gray" |
| 143 | - android:textSize="17sp" | 143 | + android:textSize="15sp" |
| 144 | android:textStyle="bold" /> | 144 | android:textStyle="bold" /> |
| 145 | </LinearLayout> | 145 | </LinearLayout> |
| 146 | <!--用时--> | 146 | <!--用时--> |
| @@ -152,10 +152,10 @@ | @@ -152,10 +152,10 @@ | ||
| 152 | android:orientation="vertical"> | 152 | android:orientation="vertical"> |
| 153 | 153 | ||
| 154 | <ImageView | 154 | <ImageView |
| 155 | - android:layout_width="30dp" | ||
| 156 | - android:layout_height="30dp" | 155 | + android:layout_width="23dp" |
| 156 | + android:layout_height="25dp" | ||
| 157 | android:layout_marginBottom="5dp" | 157 | android:layout_marginBottom="5dp" |
| 158 | - android:src="@drawable/rt_outdoor_video_time" /> | 158 | + android:src="@drawable/sport_time_cost" /> |
| 159 | 159 | ||
| 160 | <Chronometer | 160 | <Chronometer |
| 161 | android:id="@+id/chronometer" | 161 | android:id="@+id/chronometer" |
| @@ -173,7 +173,7 @@ | @@ -173,7 +173,7 @@ | ||
| 173 | android:gravity="center" | 173 | android:gravity="center" |
| 174 | android:text="用时" | 174 | android:text="用时" |
| 175 | android:textColor="@color/text_gray" | 175 | android:textColor="@color/text_gray" |
| 176 | - android:textSize="17sp" | 176 | + android:textSize="15sp" |
| 177 | android:textStyle="bold" /> | 177 | android:textStyle="bold" /> |
| 178 | </LinearLayout> | 178 | </LinearLayout> |
| 179 | <!--热量--> | 179 | <!--热量--> |
| @@ -185,10 +185,10 @@ | @@ -185,10 +185,10 @@ | ||
| 185 | android:orientation="vertical"> | 185 | android:orientation="vertical"> |
| 186 | 186 | ||
| 187 | <ImageView | 187 | <ImageView |
| 188 | - android:layout_width="30dp" | ||
| 189 | - android:layout_height="30dp" | 188 | + android:layout_width="26dp" |
| 189 | + android:layout_height="24dp" | ||
| 190 | android:layout_marginBottom="5dp" | 190 | android:layout_marginBottom="5dp" |
| 191 | - android:src="@drawable/rt_outdoor_video_cal" /> | 191 | + android:src="@drawable/sport_step" /> |
| 192 | 192 | ||
| 193 | <TextView | 193 | <TextView |
| 194 | android:id="@+id/tv_step_count" | 194 | android:id="@+id/tv_step_count" |
| @@ -207,7 +207,7 @@ | @@ -207,7 +207,7 @@ | ||
| 207 | android:gravity="center" | 207 | android:gravity="center" |
| 208 | android:text="步" | 208 | android:text="步" |
| 209 | android:textColor="@color/text_gray" | 209 | android:textColor="@color/text_gray" |
| 210 | - android:textSize="17sp" | 210 | + android:textSize="15sp" |
| 211 | android:textStyle="bold" /> | 211 | android:textStyle="bold" /> |
| 212 | </LinearLayout> | 212 | </LinearLayout> |
| 213 | </LinearLayout> | 213 | </LinearLayout> |
| @@ -248,26 +248,22 @@ | @@ -248,26 +248,22 @@ | ||
| 248 | 248 | ||
| 249 | <FrameLayout | 249 | <FrameLayout |
| 250 | android:layout_width="match_parent" | 250 | android:layout_width="match_parent" |
| 251 | - android:layout_height="wrap_content"> | ||
| 252 | - | 251 | + android:layout_height="wrap_content" |
| 252 | + android:layout_marginTop="5dp" | ||
| 253 | + android:visibility="invisible"> | ||
| 253 | 254 | ||
| 254 | <ImageView | 255 | <ImageView |
| 255 | - android:layout_width="70dp" | ||
| 256 | - android:layout_height="50dp" | ||
| 257 | - android:layout_gravity="center" | ||
| 258 | - android:layout_marginTop="-5dp" | ||
| 259 | - android:layout_marginBottom="-10dp" | ||
| 260 | - android:padding="0dp" | ||
| 261 | - android:scaleX="1.1" | ||
| 262 | - android:scaleY="0.8" /> | 256 | + android:layout_width="72dp" |
| 257 | + android:layout_height="33dp" | ||
| 258 | + android:layout_gravity="center" /> | ||
| 263 | 259 | ||
| 264 | <TextView | 260 | <TextView |
| 265 | android:layout_width="wrap_content" | 261 | android:layout_width="wrap_content" |
| 266 | android:layout_height="wrap_content" | 262 | android:layout_height="wrap_content" |
| 267 | android:layout_gravity="center" | 263 | android:layout_gravity="center" |
| 264 | + android:layout_marginBottom="5dp" | ||
| 268 | android:gravity="center" | 265 | android:gravity="center" |
| 269 | android:src="@drawable/bg_tips_bottom_center" | 266 | android:src="@drawable/bg_tips_bottom_center" |
| 270 | - android:text="" | ||
| 271 | android:textSize="12sp" /> | 267 | android:textSize="12sp" /> |
| 272 | </FrameLayout> | 268 | </FrameLayout> |
| 273 | 269 | ||
| @@ -280,8 +276,8 @@ | @@ -280,8 +276,8 @@ | ||
| 280 | android:focusable="true"> | 276 | android:focusable="true"> |
| 281 | 277 | ||
| 282 | <ImageView | 278 | <ImageView |
| 283 | - android:layout_width="35dp" | ||
| 284 | - android:layout_height="35dp" | 279 | + android:layout_width="17dp" |
| 280 | + android:layout_height="20dp" | ||
| 285 | android:layout_gravity="center" | 281 | android:layout_gravity="center" |
| 286 | android:layout_marginBottom="10dp" | 282 | android:layout_marginBottom="10dp" |
| 287 | android:background="@drawable/rt_training_button_resume" | 283 | android:background="@drawable/rt_training_button_resume" |
| @@ -308,23 +304,20 @@ | @@ -308,23 +304,20 @@ | ||
| 308 | android:id="@+id/fl_stop_tip" | 304 | android:id="@+id/fl_stop_tip" |
| 309 | android:layout_width="match_parent" | 305 | android:layout_width="match_parent" |
| 310 | android:layout_height="wrap_content" | 306 | android:layout_height="wrap_content" |
| 307 | + android:layout_marginTop="5dp" | ||
| 311 | android:visibility="invisible"> | 308 | android:visibility="invisible"> |
| 312 | 309 | ||
| 313 | <ImageView | 310 | <ImageView |
| 314 | - android:layout_width="70dp" | ||
| 315 | - android:layout_height="50dp" | 311 | + android:layout_width="72dp" |
| 312 | + android:layout_height="33dp" | ||
| 316 | android:layout_gravity="center" | 313 | android:layout_gravity="center" |
| 317 | - android:layout_marginTop="-5dp" | ||
| 318 | - android:layout_marginBottom="-10dp" | ||
| 319 | - android:background="@drawable/bg_tips_bottom_center" | ||
| 320 | - android:padding="0dp" | ||
| 321 | - android:scaleX="1.1" | ||
| 322 | - android:scaleY="0.8" /> | 314 | + android:background="@drawable/bg_tips_bottom_center" /> |
| 323 | 315 | ||
| 324 | <TextView | 316 | <TextView |
| 325 | android:layout_width="wrap_content" | 317 | android:layout_width="wrap_content" |
| 326 | android:layout_height="wrap_content" | 318 | android:layout_height="wrap_content" |
| 327 | android:layout_gravity="center" | 319 | android:layout_gravity="center" |
| 320 | + android:layout_marginBottom="3dp" | ||
| 328 | android:gravity="center" | 321 | android:gravity="center" |
| 329 | android:src="@drawable/bg_tips_bottom_center" | 322 | android:src="@drawable/bg_tips_bottom_center" |
| 330 | android:text="长按结束" | 323 | android:text="长按结束" |
| @@ -346,8 +339,8 @@ | @@ -346,8 +339,8 @@ | ||
| 346 | android:visibility="gone" /> | 339 | android:visibility="gone" /> |
| 347 | 340 | ||
| 348 | <ImageView | 341 | <ImageView |
| 349 | - android:layout_width="35dp" | ||
| 350 | - android:layout_height="35dp" | 342 | + android:layout_width="17dp" |
| 343 | + android:layout_height="17dp" | ||
| 351 | android:layout_gravity="center" | 344 | android:layout_gravity="center" |
| 352 | android:layout_marginBottom="10dp" | 345 | android:layout_marginBottom="10dp" |
| 353 | android:background="@drawable/rt_training_button_stop" | 346 | android:background="@drawable/rt_training_button_stop" |
| @@ -377,12 +370,12 @@ | @@ -377,12 +370,12 @@ | ||
| 377 | android:layout_width="85dp" | 370 | android:layout_width="85dp" |
| 378 | android:layout_height="85dp" | 371 | android:layout_height="85dp" |
| 379 | android:layout_marginBottom="12dp" | 372 | android:layout_marginBottom="12dp" |
| 380 | - android:background="@drawable/shape_gray_round" | 373 | + android:background="@drawable/shape_white_round" |
| 381 | android:focusable="true"> | 374 | android:focusable="true"> |
| 382 | 375 | ||
| 383 | <ImageView | 376 | <ImageView |
| 384 | - android:layout_width="35dp" | ||
| 385 | - android:layout_height="35dp" | 377 | + android:layout_width="15dp" |
| 378 | + android:layout_height="18dp" | ||
| 386 | android:layout_gravity="center" | 379 | android:layout_gravity="center" |
| 387 | android:layout_marginBottom="10dp" | 380 | android:layout_marginBottom="10dp" |
| 388 | android:background="@drawable/rt_training_button_pause" | 381 | android:background="@drawable/rt_training_button_pause" |
| @@ -408,7 +401,8 @@ | @@ -408,7 +401,8 @@ | ||
| 408 | android:layout_width="match_parent" | 401 | android:layout_width="match_parent" |
| 409 | android:layout_height="match_parent" | 402 | android:layout_height="match_parent" |
| 410 | android:background="@color/run_main_time_bg" | 403 | android:background="@color/run_main_time_bg" |
| 411 | - android:gravity="center"> | 404 | + android:gravity="center" |
| 405 | + android:visibility="gone"> | ||
| 412 | 406 | ||
| 413 | <TextView | 407 | <TextView |
| 414 | android:id="@+id/tv_time_count_down" | 408 | android:id="@+id/tv_time_count_down" |
moudle_pedometer/src/main/res/layout/fragment_run_race_detail.xml
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | sothree:umanoDragView="@+id/dragView" | 10 | sothree:umanoDragView="@+id/dragView" |
| 11 | sothree:umanoFadeColor="@color/black_20" | 11 | sothree:umanoFadeColor="@color/black_20" |
| 12 | sothree:umanoOverlay="true" | 12 | sothree:umanoOverlay="true" |
| 13 | - sothree:umanoPanelHeight="142dp" | 13 | + sothree:umanoPanelHeight="141dp" |
| 14 | sothree:umanoParallaxOffset="250dp" | 14 | sothree:umanoParallaxOffset="250dp" |
| 15 | sothree:umanoScrollableView="@+id/scrollView" | 15 | sothree:umanoScrollableView="@+id/scrollView" |
| 16 | sothree:umanoShadowHeight="0dp"> | 16 | sothree:umanoShadowHeight="0dp"> |
| @@ -89,6 +89,11 @@ | @@ -89,6 +89,11 @@ | ||
| 89 | android:id="@+id/include_rank" | 89 | android:id="@+id/include_rank" |
| 90 | layout="@layout/layout_run_detail_rank" | 90 | layout="@layout/layout_run_detail_rank" |
| 91 | android:visibility="visible" /> | 91 | android:visibility="visible" /> |
| 92 | + <!----> | ||
| 93 | + <View | ||
| 94 | + android:layout_width="match_parent" | ||
| 95 | + android:layout_height="20dp" | ||
| 96 | + android:background="#F4F4F4" /> | ||
| 92 | <!--路线介绍--> | 97 | <!--路线介绍--> |
| 93 | <include | 98 | <include |
| 94 | android:id="@+id/include_street_introduce" | 99 | android:id="@+id/include_street_introduce" |
moudle_pedometer/src/main/res/layout/layout_run_detail_person_score.xml
| @@ -6,12 +6,11 @@ | @@ -6,12 +6,11 @@ | ||
| 6 | <!--个人最佳成绩--> | 6 | <!--个人最佳成绩--> |
| 7 | <LinearLayout | 7 | <LinearLayout |
| 8 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
| 9 | - android:layout_height="150dp" | ||
| 10 | - android:layout_marginLeft="10dp" | ||
| 11 | - android:layout_marginTop="20dp" | ||
| 12 | - android:layout_marginRight="10dp" | ||
| 13 | - android:layout_marginBottom="10dp" | ||
| 14 | - android:background="@drawable/shape_10dp_white_raduis_bg" | 9 | + android:layout_height="180dp" |
| 10 | + android:layout_marginLeft="1dp" | ||
| 11 | + android:layout_marginRight="1dp" | ||
| 12 | + android:layout_marginBottom="5dp" | ||
| 13 | + android:background="@drawable/layer_shadow" | ||
| 15 | android:orientation="vertical"> | 14 | android:orientation="vertical"> |
| 16 | 15 | ||
| 17 | <LinearLayout | 16 | <LinearLayout |
| @@ -27,7 +26,7 @@ | @@ -27,7 +26,7 @@ | ||
| 27 | android:layout_marginLeft="10dp" | 26 | android:layout_marginLeft="10dp" |
| 28 | android:layout_weight="1" | 27 | android:layout_weight="1" |
| 29 | android:text="个人最佳成绩" | 28 | android:text="个人最佳成绩" |
| 30 | - android:textColor="@color/black" | 29 | + android:textColor="@color/text_black" |
| 31 | android:textSize="18sp" | 30 | android:textSize="18sp" |
| 32 | android:textStyle="bold" /> | 31 | android:textStyle="bold" /> |
| 33 | 32 | ||
| @@ -37,7 +36,7 @@ | @@ -37,7 +36,7 @@ | ||
| 37 | android:layout_height="wrap_content" | 36 | android:layout_height="wrap_content" |
| 38 | android:layout_marginRight="10dp" | 37 | android:layout_marginRight="10dp" |
| 39 | android:text="查看全部成绩 >" | 38 | android:text="查看全部成绩 >" |
| 40 | - android:textColor="@color/black" | 39 | + android:textColor="@color/text_black" |
| 41 | android:textSize="13sp" /> | 40 | android:textSize="13sp" /> |
| 42 | </LinearLayout> | 41 | </LinearLayout> |
| 43 | <!----> | 42 | <!----> |
| @@ -58,7 +57,7 @@ | @@ -58,7 +57,7 @@ | ||
| 58 | android:layout_marginLeft="15dp" | 57 | android:layout_marginLeft="15dp" |
| 59 | android:text="1.53" | 58 | android:text="1.53" |
| 60 | android:textColor="@color/black" | 59 | android:textColor="@color/black" |
| 61 | - android:textSize="25sp" | 60 | + android:textSize="30sp" |
| 62 | android:textStyle="bold" /> | 61 | android:textStyle="bold" /> |
| 63 | 62 | ||
| 64 | <TextView | 63 | <TextView |
| @@ -66,8 +65,8 @@ | @@ -66,8 +65,8 @@ | ||
| 66 | android:layout_height="wrap_content" | 65 | android:layout_height="wrap_content" |
| 67 | android:layout_marginLeft="5dp" | 66 | android:layout_marginLeft="5dp" |
| 68 | android:text="公里" | 67 | android:text="公里" |
| 69 | - android:textColor="@color/text_gray" | ||
| 70 | - android:textSize="15sp" /> | 68 | + android:textColor="@color/text_black" |
| 69 | + android:textSize="12sp" /> | ||
| 71 | </LinearLayout> | 70 | </LinearLayout> |
| 72 | </LinearLayout> | 71 | </LinearLayout> |
| 73 | 72 | ||
| @@ -88,15 +87,15 @@ | @@ -88,15 +87,15 @@ | ||
| 88 | android:layout_width="wrap_content" | 87 | android:layout_width="wrap_content" |
| 89 | android:layout_height="wrap_content" | 88 | android:layout_height="wrap_content" |
| 90 | android:text="步数" | 89 | android:text="步数" |
| 91 | - android:textColor="@color/text_gray" | ||
| 92 | - android:textSize="15sp" /> | 90 | + android:textColor="@color/text_black" |
| 91 | + android:textSize="12sp" /> | ||
| 93 | 92 | ||
| 94 | <TextView | 93 | <TextView |
| 95 | android:layout_width="wrap_content" | 94 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" | 95 | android:layout_height="wrap_content" |
| 97 | android:layout_marginTop="5dp" | 96 | android:layout_marginTop="5dp" |
| 98 | android:text="1234" | 97 | android:text="1234" |
| 99 | - android:textColor="@color/black" | 98 | + android:textColor="@color/text_black" |
| 100 | android:textSize="20sp" | 99 | android:textSize="20sp" |
| 101 | android:textStyle="bold" /> | 100 | android:textStyle="bold" /> |
| 102 | 101 | ||
| @@ -113,10 +112,9 @@ | @@ -113,10 +112,9 @@ | ||
| 113 | <TextView | 112 | <TextView |
| 114 | android:layout_width="wrap_content" | 113 | android:layout_width="wrap_content" |
| 115 | android:layout_height="wrap_content" | 114 | android:layout_height="wrap_content" |
| 116 | - | ||
| 117 | android:text="用时" | 115 | android:text="用时" |
| 118 | - android:textColor="@color/text_gray" | ||
| 119 | - android:textSize="15sp" /> | 116 | + android:textColor="@color/text_black" |
| 117 | + android:textSize="12sp" /> | ||
| 120 | 118 | ||
| 121 | <TextView | 119 | <TextView |
| 122 | android:layout_width="wrap_content" | 120 | android:layout_width="wrap_content" |
| @@ -141,15 +139,15 @@ | @@ -141,15 +139,15 @@ | ||
| 141 | android:layout_width="wrap_content" | 139 | android:layout_width="wrap_content" |
| 142 | android:layout_height="wrap_content" | 140 | android:layout_height="wrap_content" |
| 143 | android:text="配速" | 141 | android:text="配速" |
| 144 | - android:textColor="@color/text_gray" | ||
| 145 | - android:textSize="15sp" /> | 142 | + android:textColor="@color/text_black" |
| 143 | + android:textSize="12sp" /> | ||
| 146 | 144 | ||
| 147 | <TextView | 145 | <TextView |
| 148 | android:layout_width="wrap_content" | 146 | android:layout_width="wrap_content" |
| 149 | android:layout_height="wrap_content" | 147 | android:layout_height="wrap_content" |
| 150 | android:layout_marginTop="5dp" | 148 | android:layout_marginTop="5dp" |
| 151 | android:text="22'22''" | 149 | android:text="22'22''" |
| 152 | - android:textColor="@color/black" | 150 | + android:textColor="@color/text_black" |
| 153 | android:textSize="20sp" | 151 | android:textSize="20sp" |
| 154 | android:textStyle="bold" /> | 152 | android:textStyle="bold" /> |
| 155 | 153 |
moudle_pedometer/src/main/res/layout/layout_run_detail_rank.xml
| @@ -11,8 +11,11 @@ | @@ -11,8 +11,11 @@ | ||
| 11 | <LinearLayout | 11 | <LinearLayout |
| 12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
| 13 | android:layout_height="150dp" | 13 | android:layout_height="150dp" |
| 14 | - android:layout_margin="10dp" | ||
| 15 | - android:background="@drawable/shape_10dp_white_raduis_bg" | 14 | + android:layout_marginLeft="1dp" |
| 15 | + android:layout_marginTop="10dp" | ||
| 16 | + android:layout_marginRight="1dp" | ||
| 17 | + android:layout_marginBottom="15dp" | ||
| 18 | + android:background="@drawable/layer_shadow" | ||
| 16 | android:orientation="vertical"> | 19 | android:orientation="vertical"> |
| 17 | 20 | ||
| 18 | <LinearLayout | 21 | <LinearLayout |
| @@ -78,7 +81,7 @@ | @@ -78,7 +81,7 @@ | ||
| 78 | android:layout_marginTop="5dp" | 81 | android:layout_marginTop="5dp" |
| 79 | android:text="@string/layout_run_detail_rank_person_finish" | 82 | android:text="@string/layout_run_detail_rank_person_finish" |
| 80 | android:textColor="@color/text_gray" | 83 | android:textColor="@color/text_gray" |
| 81 | - android:textSize="15sp" /> | 84 | + android:textSize="12sp" /> |
| 82 | </LinearLayout> | 85 | </LinearLayout> |
| 83 | </LinearLayout> | 86 | </LinearLayout> |
| 84 | <!--右侧--> | 87 | <!--右侧--> |
| @@ -99,8 +102,8 @@ | @@ -99,8 +102,8 @@ | ||
| 99 | android:layout_width="wrap_content" | 102 | android:layout_width="wrap_content" |
| 100 | android:layout_height="wrap_content" | 103 | android:layout_height="wrap_content" |
| 101 | android:text="00:27:23" | 104 | android:text="00:27:23" |
| 102 | - android:textColor="@color/black" | ||
| 103 | - android:textSize="20sp" | 105 | + android:textColor="@color/text_black" |
| 106 | + android:textSize="18sp" | ||
| 104 | android:textStyle="bold" /> | 107 | android:textStyle="bold" /> |
| 105 | 108 | ||
| 106 | <TextView | 109 | <TextView |
| @@ -109,24 +112,32 @@ | @@ -109,24 +112,32 @@ | ||
| 109 | android:layout_marginTop="5dp" | 112 | android:layout_marginTop="5dp" |
| 110 | android:text="用户昵称" | 113 | android:text="用户昵称" |
| 111 | android:textColor="@color/text_gray" | 114 | android:textColor="@color/text_gray" |
| 112 | - android:textSize="15sp" /> | 115 | + android:textSize="12sp" /> |
| 113 | 116 | ||
| 114 | <!----> | 117 | <!----> |
| 115 | </LinearLayout> | 118 | </LinearLayout> |
| 116 | 119 | ||
| 117 | - <LinearLayout | 120 | + <FrameLayout |
| 118 | android:layout_width="wrap_content" | 121 | android:layout_width="wrap_content" |
| 119 | - android:layout_height="match_parent" | ||
| 120 | - android:gravity="center"> | 122 | + android:layout_height="match_parent"> |
| 121 | 123 | ||
| 122 | <com.qmuiteam.qmui.widget.QMUIRadiusImageView | 124 | <com.qmuiteam.qmui.widget.QMUIRadiusImageView |
| 123 | android:layout_width="60dp" | 125 | android:layout_width="60dp" |
| 124 | android:layout_height="60dp" | 126 | android:layout_height="60dp" |
| 127 | + android:layout_gravity="center" | ||
| 125 | android:layout_marginLeft="10dp" | 128 | android:layout_marginLeft="10dp" |
| 126 | android:layout_marginRight="15dp" | 129 | android:layout_marginRight="15dp" |
| 127 | android:background="@drawable/tc_ic_workout_level_adjust_coach" | 130 | android:background="@drawable/tc_ic_workout_level_adjust_coach" |
| 128 | app:qmui_corner_radius="100dp" /> | 131 | app:qmui_corner_radius="100dp" /> |
| 129 | - </LinearLayout> | 132 | + |
| 133 | + <ImageView | ||
| 134 | + android:layout_width="16dp" | ||
| 135 | + android:layout_height="17dp" | ||
| 136 | + android:layout_gravity="right" | ||
| 137 | + android:layout_marginTop="10dp" | ||
| 138 | + android:layout_marginRight="10dp" | ||
| 139 | + android:background="@drawable/crown" /> | ||
| 140 | + </FrameLayout> | ||
| 130 | <!----> | 141 | <!----> |
| 131 | </LinearLayout> | 142 | </LinearLayout> |
| 132 | 143 |
moudle_pedometer/src/main/res/layout/layout_run_detail_street.xml
| @@ -34,6 +34,7 @@ | @@ -34,6 +34,7 @@ | ||
| 34 | android:layout_marginLeft="10dp" | 34 | android:layout_marginLeft="10dp" |
| 35 | android:layout_marginTop="10dp" | 35 | android:layout_marginTop="10dp" |
| 36 | android:text="奥森南园跑道" | 36 | android:text="奥森南园跑道" |
| 37 | + android:textColor="@color/text_black" | ||
| 37 | android:textSize="18sp" | 38 | android:textSize="18sp" |
| 38 | android:textStyle="bold" /> | 39 | android:textStyle="bold" /> |
| 39 | <!--活动地点--> | 40 | <!--活动地点--> |
| @@ -45,8 +46,8 @@ | @@ -45,8 +46,8 @@ | ||
| 45 | android:gravity="center_vertical"> | 46 | android:gravity="center_vertical"> |
| 46 | 47 | ||
| 47 | <ImageView | 48 | <ImageView |
| 48 | - android:layout_width="10dp" | ||
| 49 | - android:layout_height="12dp" | 49 | + android:layout_width="14dp" |
| 50 | + android:layout_height="16dp" | ||
| 50 | android:background="@drawable/sport_location" /> | 51 | android:background="@drawable/sport_location" /> |
| 51 | 52 | ||
| 52 | <TextView | 53 | <TextView |
| @@ -70,7 +71,7 @@ | @@ -70,7 +71,7 @@ | ||
| 70 | android:layout_height="wrap_content" | 71 | android:layout_height="wrap_content" |
| 71 | android:layout_marginLeft="25dp" | 72 | android:layout_marginLeft="25dp" |
| 72 | android:text="北京" | 73 | android:text="北京" |
| 73 | - android:textColor="@color/black" | 74 | + android:textColor="@color/text_black" |
| 74 | android:textSize="15sp" /> | 75 | android:textSize="15sp" /> |
| 75 | 76 | ||
| 76 | <TextView | 77 | <TextView |
| @@ -78,7 +79,7 @@ | @@ -78,7 +79,7 @@ | ||
| 78 | android:layout_height="wrap_content" | 79 | android:layout_height="wrap_content" |
| 79 | android:layout_marginLeft="25dp" | 80 | android:layout_marginLeft="25dp" |
| 80 | android:text="首都师范大学" | 81 | android:text="首都师范大学" |
| 81 | - android:textColor="@color/black" | 82 | + android:textColor="@color/text_black" |
| 82 | android:textSize="15sp" /> | 83 | android:textSize="15sp" /> |
| 83 | 84 | ||
| 84 | <TextView | 85 | <TextView |
| @@ -86,7 +87,7 @@ | @@ -86,7 +87,7 @@ | ||
| 86 | android:layout_height="wrap_content" | 87 | android:layout_height="wrap_content" |
| 87 | android:layout_marginLeft="25dp" | 88 | android:layout_marginLeft="25dp" |
| 88 | android:text="全长4.42公里" | 89 | android:text="全长4.42公里" |
| 89 | - android:textColor="@color/black" | 90 | + android:textColor="@color/text_black" |
| 90 | android:textSize="15sp" /> | 91 | android:textSize="15sp" /> |
| 91 | </LinearLayout> | 92 | </LinearLayout> |
| 92 | </LinearLayout> | 93 | </LinearLayout> |
| @@ -157,7 +158,7 @@ | @@ -157,7 +158,7 @@ | ||
| 157 | android:layout_height="wrap_content" | 158 | android:layout_height="wrap_content" |
| 158 | android:layout_marginLeft="10dp" | 159 | android:layout_marginLeft="10dp" |
| 159 | android:text="首都师范大学操场东门" | 160 | android:text="首都师范大学操场东门" |
| 160 | - android:textColor="@color/black" | 161 | + android:textColor="@color/text_black" |
| 161 | android:textSize="15sp" /> | 162 | android:textSize="15sp" /> |
| 162 | </LinearLayout> | 163 | </LinearLayout> |
| 163 | <!--终点--> | 164 | <!--终点--> |
| @@ -188,7 +189,7 @@ | @@ -188,7 +189,7 @@ | ||
| 188 | android:layout_height="wrap_content" | 189 | android:layout_height="wrap_content" |
| 189 | android:layout_marginLeft="10dp" | 190 | android:layout_marginLeft="10dp" |
| 190 | android:text="首都师范大学操场西门" | 191 | android:text="首都师范大学操场西门" |
| 191 | - android:textColor="@color/black" | 192 | + android:textColor="@color/text_black" |
| 192 | android:textSize="15sp" /> | 193 | android:textSize="15sp" /> |
| 193 | </LinearLayout> | 194 | </LinearLayout> |
| 194 | 195 | ||
| @@ -198,12 +199,13 @@ | @@ -198,12 +199,13 @@ | ||
| 198 | android:layout_width="match_parent" | 199 | android:layout_width="match_parent" |
| 199 | android:layout_height="wrap_content" | 200 | android:layout_height="wrap_content" |
| 200 | android:layout_marginLeft="10dp" | 201 | android:layout_marginLeft="10dp" |
| 201 | - android:layout_marginTop="10dp"> | 202 | + android:layout_marginTop="10dp" |
| 203 | + android:gravity="center_vertical"> | ||
| 202 | 204 | ||
| 203 | <ImageView | 205 | <ImageView |
| 204 | - android:layout_width="20dp" | ||
| 205 | - android:layout_height="20dp" | ||
| 206 | - android:background="@drawable/icon_race_location_green" /> | 206 | + android:layout_width="14dp" |
| 207 | + android:layout_height="14dp" | ||
| 208 | + android:background="@drawable/sport_time" /> | ||
| 207 | 209 | ||
| 208 | <TextView | 210 | <TextView |
| 209 | android:layout_width="wrap_content" | 211 | android:layout_width="wrap_content" |
| @@ -225,7 +227,7 @@ | @@ -225,7 +227,7 @@ | ||
| 225 | android:layout_height="wrap_content" | 227 | android:layout_height="wrap_content" |
| 226 | android:layout_marginLeft="25dp" | 228 | android:layout_marginLeft="25dp" |
| 227 | android:text="2019.05.01" | 229 | android:text="2019.05.01" |
| 228 | - android:textColor="@color/black" | 230 | + android:textColor="@color/text_black" |
| 229 | android:textSize="15sp" /> | 231 | android:textSize="15sp" /> |
| 230 | 232 | ||
| 231 | <TextView | 233 | <TextView |
| @@ -233,7 +235,7 @@ | @@ -233,7 +235,7 @@ | ||
| 233 | android:layout_height="match_parent" | 235 | android:layout_height="match_parent" |
| 234 | android:layout_marginLeft="5dp" | 236 | android:layout_marginLeft="5dp" |
| 235 | android:text="——" | 237 | android:text="——" |
| 236 | - android:textColor="@color/black" | 238 | + android:textColor="@color/text_black" |
| 237 | android:textSize="15sp" /> | 239 | android:textSize="15sp" /> |
| 238 | 240 | ||
| 239 | <TextView | 241 | <TextView |
| @@ -241,26 +243,29 @@ | @@ -241,26 +243,29 @@ | ||
| 241 | android:layout_height="wrap_content" | 243 | android:layout_height="wrap_content" |
| 242 | android:layout_marginLeft="5dp" | 244 | android:layout_marginLeft="5dp" |
| 243 | android:text="2019.09.01" | 245 | android:text="2019.09.01" |
| 244 | - android:textColor="@color/black" | 246 | + android:textColor="@color/text_black" |
| 245 | android:textSize="15sp" /> | 247 | android:textSize="15sp" /> |
| 246 | </LinearLayout> | 248 | </LinearLayout> |
| 247 | 249 | ||
| 248 | <View | 250 | <View |
| 249 | android:layout_width="match_parent" | 251 | android:layout_width="match_parent" |
| 250 | android:layout_height="1dp" | 252 | android:layout_height="1dp" |
| 253 | + android:layout_marginLeft="10dp" | ||
| 251 | android:layout_marginTop="5dp" | 254 | android:layout_marginTop="5dp" |
| 255 | + android:layout_marginRight="10dp" | ||
| 252 | android:background="@color/line" /> | 256 | android:background="@color/line" /> |
| 253 | <!--活动时间--> | 257 | <!--活动时间--> |
| 254 | <LinearLayout | 258 | <LinearLayout |
| 255 | android:layout_width="match_parent" | 259 | android:layout_width="match_parent" |
| 256 | android:layout_height="wrap_content" | 260 | android:layout_height="wrap_content" |
| 257 | android:layout_marginLeft="10dp" | 261 | android:layout_marginLeft="10dp" |
| 258 | - android:layout_marginTop="10dp"> | 262 | + android:layout_marginTop="10dp" |
| 263 | + android:gravity="center_vertical"> | ||
| 259 | 264 | ||
| 260 | <ImageView | 265 | <ImageView |
| 261 | - android:layout_width="20dp" | ||
| 262 | - android:layout_height="20dp" | ||
| 263 | - android:background="@drawable/icon_race_location_green" /> | 266 | + android:layout_width="14dp" |
| 267 | + android:layout_height="14dp" | ||
| 268 | + android:background="@drawable/sport_time" /> | ||
| 264 | 269 | ||
| 265 | <TextView | 270 | <TextView |
| 266 | android:layout_width="wrap_content" | 271 | android:layout_width="wrap_content" |
| @@ -282,7 +287,7 @@ | @@ -282,7 +287,7 @@ | ||
| 282 | android:layout_height="wrap_content" | 287 | android:layout_height="wrap_content" |
| 283 | android:layout_marginLeft="25dp" | 288 | android:layout_marginLeft="25dp" |
| 284 | android:text="2019.05.01" | 289 | android:text="2019.05.01" |
| 285 | - android:textColor="@color/black" | 290 | + android:textColor="@color/text_black" |
| 286 | android:textSize="15sp" /> | 291 | android:textSize="15sp" /> |
| 287 | 292 | ||
| 288 | <TextView | 293 | <TextView |
| @@ -290,7 +295,7 @@ | @@ -290,7 +295,7 @@ | ||
| 290 | android:layout_height="match_parent" | 295 | android:layout_height="match_parent" |
| 291 | android:layout_marginLeft="5dp" | 296 | android:layout_marginLeft="5dp" |
| 292 | android:text="——" | 297 | android:text="——" |
| 293 | - android:textColor="@color/black" | 298 | + android:textColor="@color/text_black" |
| 294 | android:textSize="15sp" /> | 299 | android:textSize="15sp" /> |
| 295 | 300 | ||
| 296 | <TextView | 301 | <TextView |
| @@ -298,14 +303,16 @@ | @@ -298,14 +303,16 @@ | ||
| 298 | android:layout_height="wrap_content" | 303 | android:layout_height="wrap_content" |
| 299 | android:layout_marginLeft="5dp" | 304 | android:layout_marginLeft="5dp" |
| 300 | android:text="2019.09.01" | 305 | android:text="2019.09.01" |
| 301 | - android:textColor="@color/black" | 306 | + android:textColor="@color/text_black" |
| 302 | android:textSize="15sp" /> | 307 | android:textSize="15sp" /> |
| 303 | </LinearLayout> | 308 | </LinearLayout> |
| 304 | 309 | ||
| 305 | <View | 310 | <View |
| 306 | android:layout_width="match_parent" | 311 | android:layout_width="match_parent" |
| 307 | android:layout_height="1dp" | 312 | android:layout_height="1dp" |
| 313 | + android:layout_marginLeft="10dp" | ||
| 308 | android:layout_marginTop="5dp" | 314 | android:layout_marginTop="5dp" |
| 315 | + android:layout_marginRight="10dp" | ||
| 309 | android:background="@color/line" /> | 316 | android:background="@color/line" /> |
| 310 | <!--参与人数--> | 317 | <!--参与人数--> |
| 311 | <LinearLayout | 318 | <LinearLayout |
| @@ -331,34 +338,41 @@ | @@ -331,34 +338,41 @@ | ||
| 331 | <!--相关的人数--> | 338 | <!--相关的人数--> |
| 332 | <LinearLayout | 339 | <LinearLayout |
| 333 | android:layout_width="match_parent" | 340 | android:layout_width="match_parent" |
| 334 | - android:layout_height="wrap_content" | 341 | + android:layout_height="match_parent" |
| 342 | + android:layout_marginBottom="20dp" | ||
| 335 | android:gravity="center_vertical"> | 343 | android:gravity="center_vertical"> |
| 336 | 344 | ||
| 337 | - <TextView | ||
| 338 | - android:layout_width="wrap_content" | 345 | + <LinearLayout |
| 346 | + android:layout_width="0dp" | ||
| 339 | android:layout_height="wrap_content" | 347 | android:layout_height="wrap_content" |
| 340 | - android:layout_marginLeft="25dp" | ||
| 341 | - android:text="123" | ||
| 342 | - android:textColor="@color/black" | ||
| 343 | - android:textSize="17sp" | ||
| 344 | - android:textStyle="bold" /> | 348 | + android:layout_weight="1"> |
| 345 | 349 | ||
| 346 | - <TextView | ||
| 347 | - android:layout_width="wrap_content" | ||
| 348 | - android:layout_height="wrap_content" | ||
| 349 | - android:layout_marginLeft="5dp" | ||
| 350 | - android:text="人参与" | ||
| 351 | - android:textColor="@color/black" | ||
| 352 | - android:textSize="15sp" /> | 350 | + <TextView |
| 351 | + android:layout_width="wrap_content" | ||
| 352 | + android:layout_height="wrap_content" | ||
| 353 | + android:layout_marginLeft="28dp" | ||
| 354 | + android:text="123" | ||
| 355 | + android:textColor="@color/text_black" | ||
| 356 | + android:textSize="17sp" | ||
| 357 | + android:textStyle="bold" /> | ||
| 358 | + | ||
| 359 | + <TextView | ||
| 360 | + android:layout_width="wrap_content" | ||
| 361 | + android:layout_height="wrap_content" | ||
| 362 | + android:layout_marginLeft="5dp" | ||
| 363 | + android:text="人参与" | ||
| 364 | + android:textColor="@color/text_black" | ||
| 365 | + android:textSize="15sp" /> | ||
| 366 | + </LinearLayout> | ||
| 353 | 367 | ||
| 354 | <LinearLayout | 368 | <LinearLayout |
| 355 | - android:layout_width="match_parent" | 369 | + android:layout_width="wrap_content" |
| 356 | android:layout_height="wrap_content" | 370 | android:layout_height="wrap_content" |
| 357 | android:gravity="right|center"> | 371 | android:gravity="right|center"> |
| 358 | 372 | ||
| 359 | <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView | 373 | <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView |
| 360 | android:id="@+id/five_join_person" | 374 | android:id="@+id/five_join_person" |
| 361 | - android:layout_width="match_parent" | 375 | + android:layout_width="180dp" |
| 362 | android:layout_height="40dp" | 376 | android:layout_height="40dp" |
| 363 | android:layout_marginRight="10dp" | 377 | android:layout_marginRight="10dp" |
| 364 | FivePersonIconView:showRightFlag="true" /> | 378 | FivePersonIconView:showRightFlag="true" /> |
moudle_pedometer/src/main/res/layout/layout_run_detail_street_introduce.xml
| @@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" | 3 | android:layout_width="match_parent" |
| 4 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
| 5 | + android:background="@color/white" | ||
| 5 | android:orientation="vertical" | 6 | android:orientation="vertical" |
| 6 | android:paddingLeft="10dp" | 7 | android:paddingLeft="10dp" |
| 7 | - android:background="@color/white" | ||
| 8 | android:paddingRight="10dp"> | 8 | android:paddingRight="10dp"> |
| 9 | <!--路线介绍--> | 9 | <!--路线介绍--> |
| 10 | <TextView | 10 | <TextView |
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | android:layout_height="wrap_content" | 21 | android:layout_height="wrap_content" |
| 22 | android:layout_marginTop="10dp" | 22 | android:layout_marginTop="10dp" |
| 23 | android:text="路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍" | 23 | android:text="路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍" |
| 24 | - android:textColor="@color/black" | 24 | + android:textColor="@color/text_black" |
| 25 | android:textSize="15sp" /> | 25 | android:textSize="15sp" /> |
| 26 | 26 | ||
| 27 | <!--地图--> | 27 | <!--地图--> |
| @@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
| 37 | android:layout_width="match_parent" | 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="500dp" | 38 | android:layout_height="500dp" |
| 39 | android:layout_marginTop="10dp" | 39 | android:layout_marginTop="10dp" |
| 40 | - android:layout_marginBottom="10dp" | 40 | + android:layout_marginBottom="60dp" |
| 41 | android:background="@drawable/map" | 41 | android:background="@drawable/map" |
| 42 | android:scaleType="center" /> | 42 | android:scaleType="center" /> |
| 43 | </LinearLayout> | 43 | </LinearLayout> |
| 44 | \ No newline at end of file | 44 | \ No newline at end of file |
moudle_pedometer/src/main/res/values/colors.xml
| @@ -2,8 +2,8 @@ | @@ -2,8 +2,8 @@ | ||
| 2 | <resources> | 2 | <resources> |
| 3 | <color name="run_main_bg">#3D3745</color> | 3 | <color name="run_main_bg">#3D3745</color> |
| 4 | <color name="run_main_time_bg">#5BC4A4</color> | 4 | <color name="run_main_time_bg">#5BC4A4</color> |
| 5 | - <color name="text_gray">#8F8C95</color> | ||
| 6 | - <color name="green_round">#29C48A</color> | 5 | + <color name="text_gray">#666666</color> |
| 6 | + <color name="green_round">#5BC4A4</color> | ||
| 7 | <color name="red_round">#F97070</color> | 7 | <color name="red_round">#F97070</color> |
| 8 | <color name="gray_round">#D6D6D6</color> | 8 | <color name="gray_round">#D6D6D6</color> |
| 9 | <color name="circle_stop">#40000000</color> | 9 | <color name="circle_stop">#40000000</color> |
| @@ -25,6 +25,6 @@ | @@ -25,6 +25,6 @@ | ||
| 25 | 25 | ||
| 26 | <color name="red">#EF5544</color> | 26 | <color name="red">#EF5544</color> |
| 27 | 27 | ||
| 28 | - | ||
| 29 | - <color name="bottom_sheet_dialog_race_location_text">#C3C3C3</color> | 28 | + <color name="text_black">#333333</color> |
| 29 | + <color name="bottom_sheet_dialog_race_location_text">#999999</color> | ||
| 30 | </resources> | 30 | </resources> |