Commit 0318846d8c33c6dc8e492d1bb0db110e61092c15

Authored by 杨帅
1 parent a0a307da

1、完成活动赛事详情页面搭建

app/src/main/AndroidManifest.xml
@@ -13,7 +13,9 @@ @@ -13,7 +13,9 @@
13 android:roundIcon="@mipmap/ic_launcher_round" 13 android:roundIcon="@mipmap/ic_launcher_round"
14 android:supportsRtl="true" 14 android:supportsRtl="true"
15 android:theme="@style/AppTheme"> 15 android:theme="@style/AppTheme">
16 - <activity android:name=".MainActivity"> 16 + <activity
  17 + android:name=".MainActivity"
  18 + android:theme="@style/Theme.AppCompat">
17 <intent-filter> 19 <intent-filter>
18 <action android:name="android.intent.action.MAIN" /> 20 <action android:name="android.intent.action.MAIN" />
19 21
moudle_pedometer/build.gradle
@@ -104,4 +104,6 @@ dependencies { @@ -104,4 +104,6 @@ dependencies {
104 implementation "org.greenrobot:eventbus:$rootProject.eventBus" 104 implementation "org.greenrobot:eventbus:$rootProject.eventBus"
105 //EasyPermission 105 //EasyPermission
106 implementation "pub.devrel:easypermissions:$rootProject.easypermissions" 106 implementation "pub.devrel:easypermissions:$rootProject.easypermissions"
  107 +
  108 +// implementation 'com.sothree.slidinguppanel:library:3.4.0'
107 } 109 }
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/RunRaceDetailActivity.java
@@ -3,6 +3,7 @@ package com.cnlive.moudle.pedometer.ui.activity; @@ -3,6 +3,7 @@ package com.cnlive.moudle.pedometer.ui.activity;
3 import android.os.Bundle; 3 import android.os.Bundle;
4 import android.support.design.widget.BottomSheetDialog; 4 import android.support.design.widget.BottomSheetDialog;
5 import android.view.View; 5 import android.view.View;
  6 +import android.widget.FrameLayout;
6 7
7 import com.alibaba.android.arouter.facade.annotation.Route; 8 import com.alibaba.android.arouter.facade.annotation.Route;
8 import com.baidu.mapapi.CoordType; 9 import com.baidu.mapapi.CoordType;
@@ -41,25 +42,7 @@ public class RunRaceDetailActivity extends QMUIFragmentActivity { @@ -41,25 +42,7 @@ public class RunRaceDetailActivity extends QMUIFragmentActivity {
41 //包括BD09LL和GCJ02两种坐标,默认是BD09LL坐标。 42 //包括BD09LL和GCJ02两种坐标,默认是BD09LL坐标。
42 SDKInitializer.setCoordType(CoordType.GCJ02); 43 SDKInitializer.setCoordType(CoordType.GCJ02);
43 addFragment(); 44 addFragment();
44 - BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(this);  
45 - View view = getLayoutInflater().inflate(R.layout.bottom_sheet_dialog_run_race_detail, null);  
46 - bottomSheetDialog.setContentView(view);  
47 - bottomSheetDialog.show();  
48 - bottomSheetDialog.setCancelable(true);  
49 - bottomSheetDialog.setCanceledOnTouchOutside(false);  
50 - String aa = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229357&di=5db17f5fec9e9a221cc189778172e1cc&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fa8c6df0dd7455fdb133575965d0719ee17aab281.png";  
51 - String bb = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229356&di=0c69b8c0c4c9ababe6cbaad6baab7daa&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fd680da563ff3eef98ed0ed9ecaf77a9723d6cab1.jpg";  
52 - String cc = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=1f10e593f204a31eff3f731c3979897f&imgtype=0&src=http%3A%2F%2Fclubimg.club.vmall.com%2Fdata%2Fattachment%2Fforum%2F201904%2F19%2F072347eaumvasbmf6ugayz.png";  
53 - String dd = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=4626e51f57b8afd118b85b11670f5ad4&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fa66a2c06579a89860860a9b340da7441aafc8ad9.jpg";  
54 - String ee = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=a211d0b0a13ed984a660a2d567e43694&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2F43d728f77e3df78155ed81c95efc49f0ef34fd6a.jpg";  
55 - List<String> data = new ArrayList<>();  
56 - data.add(aa);  
57 - data.add(bb);  
58 - data.add(cc);  
59 - data.add(dd);  
60 - data.add(ee);  
61 - FivePersonIconView fivePersonIconView = view.findViewById(R.id.five_join_person);  
62 - fivePersonIconView.initIconData(data); 45 +
63 } 46 }
64 47
65 private void addFragment() { 48 private void addFragment() {
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/fragment/RunRaceDetailFragment.java
1 package com.cnlive.moudle.pedometer.ui.fragment; 1 package com.cnlive.moudle.pedometer.ui.fragment;
2 2
3 import android.os.Bundle; 3 import android.os.Bundle;
  4 +import android.support.annotation.NonNull;
4 import android.support.annotation.Nullable; 5 import android.support.annotation.Nullable;
  6 +import android.support.design.widget.BottomSheetBehavior;
  7 +import android.support.design.widget.BottomSheetDialog;
  8 +import android.util.Log;
5 import android.view.View; 9 import android.view.View;
  10 +import android.widget.FrameLayout;
  11 +import android.widget.LinearLayout;
6 12
7 import com.cnlive.libs.base.ui.QMUIFragment; 13 import com.cnlive.libs.base.ui.QMUIFragment;
8 import com.cnlive.moudle.pedometer.frame.presenter.RunRaceDetailFragmentPresenter; 14 import com.cnlive.moudle.pedometer.frame.presenter.RunRaceDetailFragmentPresenter;
9 import com.cnlive.moudle.pedometer.frame.view.RunRaceDetailFragmentView; 15 import com.cnlive.moudle.pedometer.frame.view.RunRaceDetailFragmentView;
  16 +import com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView;
  17 +import com.cnlive.moudle.pedometer.utils.ScreenUtil;
10 import com.example.moudle_pedometer.R; 18 import com.example.moudle_pedometer.R;
11 import com.example.moudle_pedometer.databinding.FragmentRunRaceDetailBinding; 19 import com.example.moudle_pedometer.databinding.FragmentRunRaceDetailBinding;
12 20
@@ -19,6 +27,8 @@ import java.util.List; @@ -19,6 +27,8 @@ import java.util.List;
19 * @author ShinnyYang 27 * @author ShinnyYang
20 */ 28 */
21 public class RunRaceDetailFragment extends QMUIFragment<RunRaceDetailFragmentView, RunRaceDetailFragmentPresenter, FragmentRunRaceDetailBinding> { 29 public class RunRaceDetailFragment extends QMUIFragment<RunRaceDetailFragmentView, RunRaceDetailFragmentPresenter, FragmentRunRaceDetailBinding> {
  30 + private static final String TAG = "RunRaceDetailFragment";
  31 +
22 @Override 32 @Override
23 protected int getToolbarId() { 33 protected int getToolbarId() {
24 return 0; 34 return 0;
@@ -37,6 +47,52 @@ public class RunRaceDetailFragment extends QMUIFragment&lt;RunRaceDetailFragmentVie @@ -37,6 +47,52 @@ public class RunRaceDetailFragment extends QMUIFragment&lt;RunRaceDetailFragmentVie
37 @Override 47 @Override
38 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { 48 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
39 super.onViewCreated(view, savedInstanceState); 49 super.onViewCreated(view, savedInstanceState);
  50 +// test();
  51 + }
  52 +
  53 + private void test() {
  54 + BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(getActivity());
  55 + View view = getLayoutInflater().inflate(R.layout.bottom_sheet_dialog_run_race_detail, null);
  56 + LinearLayout ll_end_point = view.findViewById(R.id.ll_end_point);
  57 + bottomSheetDialog.setContentView(view);
  58 + bottomSheetDialog.show();
  59 + bottomSheetDialog.setCancelable(false);
  60 + bottomSheetDialog.setCanceledOnTouchOutside(false);
  61 + //以下设置是为了解决:下滑隐藏dialog后,再次调用show方法显示时,不能弹出Dialog----在真机测试时不写下面的方法也未发现问题
  62 + View delegateView = bottomSheetDialog.getDelegate().findViewById(android.support.design.R.id.design_bottom_sheet);
  63 + final BottomSheetBehavior<View> sheetBehavior = BottomSheetBehavior.from(delegateView);
  64 + sheetBehavior.setPeekHeight(ScreenUtil.getScreenHeight(getActivity()) / 3);
  65 + sheetBehavior.setBottomSheetCallback(new BottomSheetBehavior.BottomSheetCallback() {
  66 + //在下滑隐藏结束时才会触发
  67 + @Override
  68 + public void onStateChanged(@NonNull View bottomSheet, int newState) {
  69 + if (newState == BottomSheetBehavior.STATE_HIDDEN) {
  70 + Log.e(TAG, "onStateChanged: ");
  71 + bottomSheetDialog.dismiss();
  72 + sheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
  73 + }
  74 + }
  75 +
  76 + //每次滑动都会触发
  77 + @Override
  78 + public void onSlide(@NonNull View bottomSheet, float slideOffset) {
  79 + Log.e(TAG, "onSlide: ");
  80 + System.out.println("onSlide = [" + bottomSheet + "], slideOffset = [" + slideOffset + "]");
  81 + }
  82 + });
40 83
  84 + String aa = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229357&di=5db17f5fec9e9a221cc189778172e1cc&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fa8c6df0dd7455fdb133575965d0719ee17aab281.png";
  85 + String bb = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229356&di=0c69b8c0c4c9ababe6cbaad6baab7daa&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fd680da563ff3eef98ed0ed9ecaf77a9723d6cab1.jpg";
  86 + String cc = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=1f10e593f204a31eff3f731c3979897f&imgtype=0&src=http%3A%2F%2Fclubimg.club.vmall.com%2Fdata%2Fattachment%2Fforum%2F201904%2F19%2F072347eaumvasbmf6ugayz.png";
  87 + String dd = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=4626e51f57b8afd118b85b11670f5ad4&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2Fa66a2c06579a89860860a9b340da7441aafc8ad9.jpg";
  88 + String ee = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559215229355&di=a211d0b0a13ed984a660a2d567e43694&imgtype=0&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2F43d728f77e3df78155ed81c95efc49f0ef34fd6a.jpg";
  89 + List<String> data = new ArrayList<>();
  90 + data.add(aa);
  91 + data.add(bb);
  92 + data.add(cc);
  93 + data.add(dd);
  94 + data.add(ee);
  95 + FivePersonIconView fivePersonIconView = view.findViewById(R.id.five_join_person);
  96 + fivePersonIconView.initIconData(data);
41 } 97 }
42 } 98 }
moudle_pedometer/src/main/res/drawable-hdpi/map.jpeg 0 → 100644

70.8 KB

moudle_pedometer/src/main/res/layout/bottom_sheet_dialog_run_race_detail.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <layout xmlns:android="http://schemas.android.com/apk/res/android" 2 <layout xmlns:android="http://schemas.android.com/apk/res/android"
3 - xmlns:FivePersonIconView="http://schemas.android.com/apk/res-auto"  
4 xmlns:app="http://schemas.android.com/apk/res-auto"> 3 xmlns:app="http://schemas.android.com/apk/res-auto">
5 4
6 - <LinearLayout 5 + <FrameLayout
7 android:layout_width="match_parent" 6 android:layout_width="match_parent"
8 android:layout_height="match_parent" 7 android:layout_height="match_parent"
9 android:orientation="vertical"> 8 android:orientation="vertical">
@@ -11,573 +10,54 @@ @@ -11,573 +10,54 @@
11 <ScrollView 10 <ScrollView
12 android:layout_width="match_parent" 11 android:layout_width="match_parent"
13 android:layout_height="match_parent" 12 android:layout_height="match_parent"
14 - android:layout_marginBottom="40dp"> 13 + android:layout_marginBottom="40dp"
  14 + android:focusable="true"
  15 + app:layout_behavior="@string/bottom_sheet_behavior">
15 16
16 <LinearLayout 17 <LinearLayout
17 android:layout_width="match_parent" 18 android:layout_width="match_parent"
18 android:layout_height="wrap_content" 19 android:layout_height="wrap_content"
19 android:orientation="vertical"> 20 android:orientation="vertical">
20 21
21 - <LinearLayout  
22 - android:layout_width="match_parent"  
23 - android:layout_height="wrap_content"  
24 - android:orientation="vertical"  
25 - android:paddingLeft="10dp">  
26 - <!--活动标题-->  
27 - <TextView  
28 - android:id="@+id/tv_race_title"  
29 - android:layout_width="wrap_content"  
30 - android:layout_height="wrap_content"  
31 - android:layout_marginTop="10dp"  
32 - android:text="奥森南园跑道"  
33 - android:textSize="18sp"  
34 - android:textStyle="bold" />  
35 - <!--活动地点-->  
36 - <LinearLayout  
37 - android:layout_width="match_parent"  
38 - android:layout_height="wrap_content"  
39 - android:layout_marginTop="10dp">  
40 -  
41 - <ImageView  
42 - android:layout_width="20dp"  
43 - android:layout_height="20dp"  
44 - android:background="@drawable/icon_race_location_green" />  
45 -  
46 - <TextView  
47 - android:layout_width="wrap_content"  
48 - android:layout_height="wrap_content"  
49 - android:layout_marginLeft="5dp"  
50 - android:text="活动地点"  
51 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
52 - android:textSize="14sp" />  
53 - </LinearLayout>  
54 - <!--活动地点详情-->  
55 - <LinearLayout  
56 - android:layout_width="match_parent"  
57 - android:layout_height="wrap_content"  
58 - android:layout_marginTop="10dp">  
59 -  
60 - <TextView  
61 - android:layout_width="wrap_content"  
62 - android:layout_height="wrap_content"  
63 - android:layout_marginLeft="25dp"  
64 - android:text="北京"  
65 - android:textColor="@color/black"  
66 - android:textSize="15sp" />  
67 -  
68 - <TextView  
69 - android:layout_width="wrap_content"  
70 - android:layout_height="wrap_content"  
71 - android:layout_marginLeft="25dp"  
72 - android:text="首都师范大学"  
73 - android:textColor="@color/black"  
74 - android:textSize="15sp" />  
75 -  
76 - <TextView  
77 - android:layout_width="wrap_content"  
78 - android:layout_height="wrap_content"  
79 - android:layout_marginLeft="25dp"  
80 - android:text="全长4.42公里"  
81 - android:textColor="@color/black"  
82 - android:textSize="15sp" />  
83 - </LinearLayout>  
84 - <!--起点-->  
85 - <LinearLayout  
86 - android:layout_width="match_parent"  
87 - android:layout_height="wrap_content"  
88 - android:layout_marginTop="10dp"  
89 - android:gravity="center_vertical">  
90 -  
91 - <View  
92 - android:layout_width="10dp"  
93 - android:layout_height="10dp"  
94 - android:layout_marginLeft="25dp"  
95 - android:background="@drawable/shape_circle_green" />  
96 -  
97 - <TextView  
98 - android:layout_width="wrap_content"  
99 - android:layout_height="wrap_content"  
100 - android:layout_marginLeft="10dp"  
101 - android:text="(起)"  
102 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
103 - android:textSize="14sp" />  
104 -  
105 - <TextView  
106 - android:layout_width="wrap_content"  
107 - android:layout_height="wrap_content"  
108 - android:layout_marginLeft="10dp"  
109 - android:text="首都师范大学操场东门"  
110 - android:textColor="@color/black"  
111 - android:textSize="15sp" />  
112 - </LinearLayout>  
113 - <!--终点-->  
114 - <LinearLayout  
115 - android:layout_width="match_parent"  
116 - android:layout_height="wrap_content"  
117 - android:layout_marginTop="10dp"  
118 - android:gravity="center_vertical">  
119 -  
120 - <View  
121 - android:layout_width="10dp"  
122 - android:layout_height="10dp"  
123 - android:layout_marginLeft="25dp"  
124 - android:background="@drawable/shape_circle_red" />  
125 -  
126 - <TextView  
127 - android:layout_width="wrap_content"  
128 - android:layout_height="wrap_content"  
129 - android:layout_marginLeft="10dp"  
130 - android:text="(止)"  
131 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
132 - android:textSize="14sp" />  
133 -  
134 - <TextView  
135 - android:layout_width="wrap_content"  
136 - android:layout_height="wrap_content"  
137 - android:layout_marginLeft="10dp"  
138 - android:text="首都师范大学操场西门"  
139 - android:textColor="@color/black"  
140 - android:textSize="15sp" />  
141 - </LinearLayout>  
142 - <!--报名时间-->  
143 - <LinearLayout  
144 - android:layout_width="match_parent"  
145 - android:layout_height="wrap_content"  
146 - android:layout_marginTop="10dp">  
147 -  
148 - <ImageView  
149 - android:layout_width="20dp"  
150 - android:layout_height="20dp"  
151 - android:background="@drawable/icon_race_location_green" />  
152 -  
153 - <TextView  
154 - android:layout_width="wrap_content"  
155 - android:layout_height="wrap_content"  
156 - android:layout_marginLeft="5dp"  
157 - android:text="报名时间"  
158 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
159 - android:textSize="14sp" />  
160 - </LinearLayout>  
161 - <!--时间-->  
162 - <LinearLayout  
163 - android:layout_width="match_parent"  
164 - android:layout_height="wrap_content"  
165 - android:layout_marginTop="10dp">  
166 -  
167 - <TextView  
168 - android:layout_width="wrap_content"  
169 - android:layout_height="wrap_content"  
170 - android:layout_marginLeft="25dp"  
171 - android:text="2019.05.01"  
172 - android:textColor="@color/black"  
173 - android:textSize="15sp" />  
174 -  
175 - <TextView  
176 - android:layout_width="wrap_content"  
177 - android:layout_height="match_parent"  
178 - android:layout_marginLeft="5dp"  
179 - android:text="——"  
180 - android:textColor="@color/black"  
181 - android:textSize="15sp" />  
182 -  
183 - <TextView  
184 - android:layout_width="wrap_content"  
185 - android:layout_height="wrap_content"  
186 - android:layout_marginLeft="5dp"  
187 - android:text="2019.09.01"  
188 - android:textColor="@color/black"  
189 - android:textSize="15sp" />  
190 - </LinearLayout>  
191 -  
192 - <View  
193 - android:layout_width="match_parent"  
194 - android:layout_height="1dp"  
195 - android:layout_marginTop="5dp"  
196 - android:background="@color/line" />  
197 - <!--活动时间-->  
198 - <LinearLayout  
199 - android:layout_width="match_parent"  
200 - android:layout_height="wrap_content"  
201 - android:layout_marginTop="10dp">  
202 -  
203 - <ImageView  
204 - android:layout_width="20dp"  
205 - android:layout_height="20dp"  
206 - android:background="@drawable/icon_race_location_green" />  
207 -  
208 - <TextView  
209 - android:layout_width="wrap_content"  
210 - android:layout_height="wrap_content"  
211 - android:layout_marginLeft="5dp"  
212 - android:text="活动时间"  
213 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
214 - android:textSize="14sp" />  
215 - </LinearLayout>  
216 - <!--活动时间的具体日期-->  
217 - <LinearLayout  
218 - android:layout_width="match_parent"  
219 - android:layout_height="wrap_content"  
220 - android:layout_marginTop="10dp">  
221 -  
222 - <TextView  
223 - android:layout_width="wrap_content"  
224 - android:layout_height="wrap_content"  
225 - android:layout_marginLeft="25dp"  
226 - android:text="2019.05.01"  
227 - android:textColor="@color/black"  
228 - android:textSize="15sp" />  
229 -  
230 - <TextView  
231 - android:layout_width="wrap_content"  
232 - android:layout_height="match_parent"  
233 - android:layout_marginLeft="5dp"  
234 - android:text="——"  
235 - android:textColor="@color/black"  
236 - android:textSize="15sp" />  
237 -  
238 - <TextView  
239 - android:layout_width="wrap_content"  
240 - android:layout_height="wrap_content"  
241 - android:layout_marginLeft="5dp"  
242 - android:text="2019.09.01"  
243 - android:textColor="@color/black"  
244 - android:textSize="15sp" />  
245 - </LinearLayout>  
246 -  
247 - <View  
248 - android:layout_width="match_parent"  
249 - android:layout_height="1dp"  
250 - android:layout_marginTop="5dp"  
251 - android:background="@color/line" />  
252 - <!--参与人数-->  
253 - <LinearLayout  
254 - android:layout_width="match_parent"  
255 - android:layout_height="wrap_content"  
256 - android:layout_marginTop="10dp">  
257 -  
258 - <ImageView  
259 - android:layout_width="20dp"  
260 - android:layout_height="20dp"  
261 - android:background="@drawable/icon_race_location_green" />  
262 -  
263 - <TextView  
264 - android:layout_width="wrap_content"  
265 - android:layout_height="wrap_content"  
266 - android:layout_marginLeft="5dp"  
267 - android:text="参与人数"  
268 - android:textColor="@color/bottom_sheet_dialog_race_location_text"  
269 - android:textSize="14sp" />  
270 - </LinearLayout>  
271 - <!--相关的人数-->  
272 - <LinearLayout  
273 - android:layout_width="match_parent"  
274 - android:layout_height="wrap_content"  
275 - android:gravity="center_vertical">  
276 -  
277 - <TextView  
278 - android:layout_width="wrap_content"  
279 - android:layout_height="wrap_content"  
280 - android:layout_marginLeft="25dp"  
281 - android:text="123"  
282 - android:textColor="@color/black"  
283 - android:textSize="17sp"  
284 - android:textStyle="bold" />  
285 -  
286 - <TextView  
287 - android:layout_width="wrap_content"  
288 - android:layout_height="wrap_content"  
289 - android:layout_marginLeft="5dp"  
290 - android:text="人参与"  
291 - android:textColor="@color/black"  
292 - android:textSize="15sp" />  
293 -  
294 - <LinearLayout  
295 - android:layout_width="match_parent"  
296 - android:layout_height="wrap_content"  
297 - android:gravity="right|center">  
298 -  
299 - <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView  
300 - android:id="@+id/five_join_person"  
301 - android:layout_width="match_parent"  
302 - android:layout_height="40dp"  
303 - android:layout_marginRight="10dp"  
304 - FivePersonIconView:showRightFlag="true"></com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView>  
305 -  
306 -  
307 - </LinearLayout>  
308 - </LinearLayout>  
309 - <!---->  
310 - </LinearLayout>  
311 - <!--个人最佳成绩-->  
312 - <LinearLayout  
313 - android:layout_width="match_parent"  
314 - android:layout_height="150dp"  
315 - android:layout_marginLeft="10dp"  
316 - android:layout_marginTop="20dp"  
317 - android:layout_marginRight="10dp"  
318 - android:layout_marginBottom="10dp"  
319 - android:background="@drawable/shape_10dp_white_raduis_bg"  
320 - android:orientation="vertical">  
321 -  
322 - <LinearLayout  
323 - android:layout_width="match_parent"  
324 - android:layout_height="wrap_content"  
325 - android:layout_marginTop="15dp"  
326 - android:gravity="bottom">  
327 -  
328 - <TextView  
329 - android:id="@+id/tv_score_title"  
330 - android:layout_width="0dp"  
331 - android:layout_height="wrap_content"  
332 - android:layout_marginLeft="10dp"  
333 - android:layout_weight="1"  
334 - android:text="个人最佳成绩"  
335 - android:textColor="@color/black"  
336 - android:textSize="18sp"  
337 - android:textStyle="bold" />  
338 -  
339 - <TextView  
340 - android:layout_width="wrap_content"  
341 - android:layout_height="wrap_content"  
342 - android:layout_marginRight="10dp"  
343 - android:text="查看全部成绩 >"  
344 - android:textColor="@color/black"  
345 - android:textSize="13sp" />  
346 - </LinearLayout>  
347 - <!---->  
348 - <LinearLayout  
349 - android:layout_width="match_parent"  
350 - android:layout_height="match_parent">  
351 -  
352 - <LinearLayout  
353 - android:layout_width="0dp"  
354 - android:layout_height="match_parent"  
355 - android:layout_weight="1"  
356 - android:gravity="center"  
357 - android:orientation="vertical">  
358 -  
359 - <TextView  
360 - android:layout_width="wrap_content"  
361 - android:layout_height="wrap_content"  
362 - android:text="1.53"  
363 - android:textColor="@color/black"  
364 - android:textSize="20sp"  
365 - android:textStyle="bold" />  
366 -  
367 - <TextView  
368 - android:layout_width="wrap_content"  
369 - android:layout_height="wrap_content"  
370 - android:layout_marginTop="10dp"  
371 - android:text="公里"  
372 - android:textColor="@color/text_gray"  
373 - android:textSize="15sp"  
374 - android:textStyle="bold" />  
375 - </LinearLayout>  
376 -  
377 - <LinearLayout  
378 - android:layout_width="0dp"  
379 - android:layout_height="match_parent"  
380 - android:layout_weight="1"  
381 - android:gravity="center"  
382 - android:orientation="vertical">  
383 -  
384 - <TextView  
385 - android:layout_width="wrap_content"  
386 - android:layout_height="wrap_content"  
387 - android:text="1234"  
388 - android:textColor="@color/black"  
389 - android:textSize="20sp"  
390 - android:textStyle="bold" />  
391 -  
392 - <TextView  
393 - android:layout_width="wrap_content"  
394 - android:layout_height="wrap_content"  
395 - android:layout_marginTop="10dp"  
396 - android:text="步数"  
397 - android:textColor="@color/text_gray"  
398 - android:textSize="15sp"  
399 - android:textStyle="bold" />  
400 - </LinearLayout>  
401 -  
402 - <LinearLayout  
403 - android:layout_width="0dp"  
404 - android:layout_height="match_parent"  
405 - android:layout_weight="1.5"  
406 - android:gravity="center"  
407 - android:orientation="vertical">  
408 -  
409 - <TextView  
410 - android:layout_width="wrap_content"  
411 - android:layout_height="wrap_content"  
412 - android:text="00:27:23"  
413 - android:textColor="@color/black"  
414 - android:textSize="20sp"  
415 - android:textStyle="bold" />  
416 -  
417 - <TextView  
418 - android:layout_width="wrap_content"  
419 - android:layout_height="wrap_content"  
420 - android:layout_marginTop="10dp"  
421 - android:text="用时"  
422 - android:textColor="@color/text_gray"  
423 - android:textSize="15sp"  
424 - android:textStyle="bold" />  
425 - </LinearLayout>  
426 -  
427 - <LinearLayout  
428 - android:layout_width="0dp"  
429 - android:layout_height="match_parent"  
430 - android:layout_weight="1"  
431 - android:gravity="center"  
432 - android:orientation="vertical">  
433 -  
434 - <TextView  
435 - android:layout_width="wrap_content"  
436 - android:layout_height="wrap_content"  
437 - android:text="99"  
438 - android:textColor="@color/black"  
439 - android:textSize="20sp"  
440 - android:textStyle="bold" />  
441 -  
442 - <TextView  
443 - android:layout_width="wrap_content"  
444 - android:layout_height="wrap_content"  
445 - android:layout_marginTop="10dp"  
446 - android:text="千卡"  
447 - android:textColor="@color/text_gray"  
448 - android:textSize="15sp"  
449 - android:textStyle="bold" />  
450 - </LinearLayout>  
451 - </LinearLayout>  
452 - </LinearLayout> 22 + <!--跑道-->
  23 + <include layout="@layout/layout_run_detail_street" />
  24 + <!--成绩-->
  25 + <include layout="@layout/layout_run_detail_person_score" />
453 <!--排行榜--> 26 <!--排行榜-->
454 - <LinearLayout  
455 - android:layout_width="match_parent"  
456 - android:layout_height="150dp"  
457 - android:layout_margin="10dp"  
458 - android:background="@drawable/shape_10dp_white_raduis_bg"  
459 - android:orientation="vertical">  
460 -  
461 - <LinearLayout  
462 - android:layout_width="match_parent"  
463 - android:layout_height="wrap_content"  
464 - android:layout_marginTop="15dp"  
465 - android:gravity="bottom">  
466 -  
467 - <TextView  
468 - android:id="@+id/tv_rank_title"  
469 - android:layout_width="0dp"  
470 - android:layout_height="wrap_content"  
471 - android:layout_marginLeft="10dp"  
472 - android:layout_weight="1"  
473 - android:text="排行榜"  
474 - android:textColor="@color/black"  
475 - android:textSize="18sp"  
476 - android:textStyle="bold" />  
477 -  
478 - <TextView  
479 - android:layout_width="wrap_content"  
480 - android:layout_height="wrap_content"  
481 - android:layout_marginRight="10dp"  
482 - android:text="查看排行榜 >"  
483 - android:textColor="@color/black"  
484 - android:textSize="13sp" />  
485 - </LinearLayout>  
486 - <!---->  
487 - <LinearLayout  
488 - android:layout_width="match_parent"  
489 - android:layout_height="match_parent"> 27 + <include layout="@layout/layout_run_detail_rank" />
  28 + <!--路线介绍-->
  29 + <include layout="@layout/layout_run_detail_street_introduce" />
490 30
491 - <LinearLayout  
492 - android:layout_width="0dp"  
493 - android:layout_height="match_parent"  
494 - android:layout_weight="1"  
495 - android:gravity="center"  
496 - android:orientation="vertical">  
497 -  
498 - <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView  
499 - android:id="@+id/five_rank_person"  
500 - android:layout_width="wrap_content"  
501 - android:layout_height="35dp"  
502 - FivePersonIconView:showRightFlag="false"></com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView>  
503 -  
504 - <LinearLayout  
505 - android:layout_width="wrap_content"  
506 - android:layout_height="wrap_content"  
507 - android:layout_marginTop="5dp"  
508 - android:gravity="bottom">  
509 -  
510 - <TextView  
511 - android:layout_width="wrap_content"  
512 - android:layout_height="wrap_content"  
513 - android:text="1234"  
514 - android:textColor="@color/black"  
515 - android:textSize="15sp"  
516 - android:textStyle="bold" />  
517 -  
518 - <TextView  
519 - android:layout_width="wrap_content"  
520 - android:layout_height="wrap_content"  
521 - android:layout_marginTop="5dp"  
522 - android:text="人已完成"  
523 - android:textColor="@color/text_gray"  
524 - android:textSize="15sp" />  
525 - </LinearLayout>  
526 - </LinearLayout>  
527 - <!--右侧-->  
528 - <LinearLayout  
529 - android:layout_width="0dp"  
530 - android:layout_height="match_parent"  
531 - android:layout_weight="1"  
532 - android:gravity="center">  
533 -  
534 - <LinearLayout  
535 - android:layout_width="0dp"  
536 - android:layout_height="match_parent"  
537 - android:layout_weight="1"  
538 - android:gravity="center"  
539 - android:orientation="vertical">  
540 -  
541 -  
542 - <TextView  
543 - android:layout_width="wrap_content"  
544 - android:layout_height="wrap_content"  
545 - android:text="1234步"  
546 - android:textColor="@color/black"  
547 - android:textSize="20sp"  
548 - android:textStyle="bold" />  
549 -  
550 - <TextView  
551 - android:layout_width="wrap_content"  
552 - android:layout_height="wrap_content"  
553 - android:layout_marginTop="15dp"  
554 - android:text="用户昵称"  
555 - android:textColor="@color/text_gray"  
556 - android:textSize="15sp" />  
557 -  
558 - <!---->  
559 - </LinearLayout>  
560 -  
561 - <LinearLayout  
562 - android:layout_width="0dp"  
563 - android:layout_height="match_parent"  
564 - android:layout_weight="1"  
565 - android:gravity="center">  
566 -  
567 - <com.qmuiteam.qmui.widget.QMUIRadiusImageView  
568 - android:layout_width="60dp"  
569 - android:layout_height="60dp"  
570 - android:background="@drawable/tc_ic_workout_level_adjust_coach"  
571 - app:qmui_corner_radius="100dp" />  
572 - </LinearLayout>  
573 - <!---->  
574 - </LinearLayout>  
575 -  
576 - </LinearLayout>  
577 - </LinearLayout>  
578 <!----> 31 <!---->
579 </LinearLayout> 32 </LinearLayout>
580 </ScrollView> 33 </ScrollView>
  34 + <!--按钮-->
  35 + <RelativeLayout
  36 + android:layout_width="match_parent"
  37 + android:layout_height="40sp"
  38 + android:layout_gravity="bottom"
  39 + android:background="@color/green">
  40 +
  41 + <TextView
  42 + android:id="@+id/tv_run_now"
  43 + android:layout_width="wrap_content"
  44 + android:layout_height="wrap_content"
  45 + android:layout_centerInParent="true"
  46 + android:text="现在开始"
  47 + android:textColor="@color/white"
  48 + android:textSize="18sp" />
581 49
582 - </LinearLayout> 50 + <TextView
  51 + android:layout_width="wrap_content"
  52 + android:layout_height="wrap_content"
  53 + android:layout_alignParentRight="true"
  54 + android:layout_centerInParent="true"
  55 + android:layout_centerVertical="true"
  56 + android:layout_marginRight="10dp"
  57 + android:text="Go!"
  58 + android:textColor="@color/white"
  59 + android:textSize="18sp" />
  60 +
  61 + </RelativeLayout>
  62 + </FrameLayout>
583 </layout> 63 </layout>
584 \ No newline at end of file 64 \ No newline at end of file
moudle_pedometer/src/main/res/layout/fragment_run_race_detail.xml
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 -<layout xmlns:android="http://schemas.android.com/apk/res/android">  
3 -  
4 - <FrameLayout  
5 - android:layout_width="match_parent"  
6 - android:layout_height="match_parent">  
7 -  
8 - <com.baidu.mapapi.map.MapView  
9 - android:id="@+id/mapView"  
10 - android:layout_width="match_parent"  
11 - android:layout_height="match_parent"></com.baidu.mapapi.map.MapView>  
12 -  
13 - <FrameLayout  
14 - android:layout_width="40dp"  
15 - android:layout_height="40dp"  
16 - android:layout_margin="10dp"  
17 - android:background="@drawable/shape_circle_50_black">  
18 -  
19 - <ImageView  
20 - android:layout_width="10dp"  
21 - android:layout_height="20dp"  
22 - android:layout_gravity="center"  
23 - android:background="@drawable/ic_white_back" />  
24 - </FrameLayout>  
25 -  
26 - <FrameLayout  
27 - android:layout_width="40dp"  
28 - android:layout_height="40dp"  
29 - android:layout_gravity="right"  
30 - android:layout_margin="10dp"  
31 - android:background="@drawable/shape_circle_50_black">  
32 -  
33 - <ImageView  
34 - android:layout_width="15dp"  
35 - android:layout_height="15dp"  
36 - android:layout_gravity="center"  
37 - android:background="@drawable/icon_share" />  
38 - </FrameLayout>  
39 - <!--按钮-->  
40 - <RelativeLayout  
41 - android:layout_width="match_parent"  
42 - android:layout_height="40sp"  
43 - android:layout_gravity="bottom"  
44 - android:background="@color/green">  
45 -  
46 - <TextView  
47 - android:id="@+id/tv_run_now"  
48 - android:layout_width="wrap_content"  
49 - android:layout_height="wrap_content"  
50 - android:layout_centerInParent="true"  
51 - android:text="现在开始"  
52 - android:textColor="@color/white"  
53 - android:textSize="18sp" />  
54 -  
55 - <TextView  
56 - android:layout_width="wrap_content"  
57 - android:layout_height="wrap_content"  
58 - android:layout_alignParentRight="true"  
59 - android:layout_centerInParent="true"  
60 - android:layout_centerVertical="true"  
61 - android:layout_marginRight="10dp"  
62 - android:text="Go!"  
63 - android:textColor="@color/white"  
64 - android:textSize="18sp" />  
65 -  
66 - </RelativeLayout>  
67 - </FrameLayout> 2 +<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + xmlns:app="http://schemas.android.com/apk/res-auto">
  4 +
  5 + <!--<FrameLayout-->
  6 + <!--android:layout_width="match_parent"-->
  7 + <!--android:layout_height="match_parent">-->
  8 +
  9 + <!--<com.baidu.mapapi.map.MapView-->
  10 + <!--android:id="@+id/mapView"-->
  11 + <!--android:layout_width="match_parent"-->
  12 + <!--android:layout_height="match_parent"></com.baidu.mapapi.map.MapView>-->
  13 +
  14 + <!--<FrameLayout-->
  15 + <!--android:layout_width="40dp"-->
  16 + <!--android:layout_height="40dp"-->
  17 + <!--android:layout_margin="10dp"-->
  18 + <!--android:background="@drawable/shape_circle_50_black">-->
  19 +
  20 + <!--<ImageView-->
  21 + <!--android:layout_width="10dp"-->
  22 + <!--android:layout_height="20dp"-->
  23 + <!--android:layout_gravity="center"-->
  24 + <!--android:background="@drawable/ic_white_back" />-->
  25 + <!--</FrameLayout>-->
  26 +
  27 + <!--<FrameLayout-->
  28 + <!--android:layout_width="40dp"-->
  29 + <!--android:layout_height="40dp"-->
  30 + <!--android:layout_gravity="right"-->
  31 + <!--android:layout_margin="10dp"-->
  32 + <!--android:background="@drawable/shape_circle_50_black">-->
  33 +
  34 + <!--<ImageView-->
  35 + <!--android:layout_width="15dp"-->
  36 + <!--android:layout_height="15dp"-->
  37 + <!--android:layout_gravity="center"-->
  38 + <!--android:background="@drawable/icon_share" />-->
  39 + <!--</FrameLayout>-->
  40 + <!--&lt;!&ndash;&ndash;&gt;-->
  41 +
  42 + <!--<com.sothree.slidinguppanel.SlidingUpPanelLayout -->
  43 + <!--android:id="@+id/sliding_layout"-->
  44 + <!--android:layout_width="match_parent"-->
  45 + <!--android:layout_height="match_parent"-->
  46 + <!--android:layout_gravity="bottom"-->
  47 + <!--android:gravity="bottom"-->
  48 + <!--sothree:umanoPanelHeight="68dp"-->
  49 + <!--sothree:umanoShadowHeight="4dp">-->
  50 +
  51 + <!--<TextView-->
  52 + <!--android:layout_width="match_parent"-->
  53 + <!--android:layout_height="match_parent"-->
  54 + <!--android:gravity="center"-->
  55 + <!--android:text="Main Content"-->
  56 + <!--android:textSize="16sp" />-->
  57 +
  58 + <!--<TextView-->
  59 + <!--android:layout_width="match_parent"-->
  60 + <!--android:layout_height="match_parent"-->
  61 + <!--android:gravity="center|top"-->
  62 + <!--android:text="The Awesome Sliding Up Panel"-->
  63 + <!--android:textSize="16sp" />-->
  64 + <!--</com.sothree.slidinguppanel.SlidingUpPanelLayout>-->
  65 + <!--&lt;!&ndash;按钮&ndash;&gt;-->
  66 + <!--<RelativeLayout-->
  67 + <!--android:layout_width="match_parent"-->
  68 + <!--android:layout_height="40sp"-->
  69 + <!--android:layout_gravity="bottom"-->
  70 + <!--android:background="@color/green">-->
  71 +
  72 + <!--<TextView-->
  73 + <!--android:id="@+id/tv_run_now"-->
  74 + <!--android:layout_width="wrap_content"-->
  75 + <!--android:layout_height="wrap_content"-->
  76 + <!--android:layout_centerInParent="true"-->
  77 + <!--android:text="现在开始"-->
  78 + <!--android:textColor="@color/white"-->
  79 + <!--android:textSize="18sp" />-->
  80 +
  81 + <!--<TextView-->
  82 + <!--android:layout_width="wrap_content"-->
  83 + <!--android:layout_height="wrap_content"-->
  84 + <!--android:layout_alignParentRight="true"-->
  85 + <!--android:layout_centerInParent="true"-->
  86 + <!--android:layout_centerVertical="true"-->
  87 + <!--android:layout_marginRight="10dp"-->
  88 + <!--android:text="Go!"-->
  89 + <!--android:textColor="@color/white"-->
  90 + <!--android:textSize="18sp" />-->
  91 +
  92 + <!--</RelativeLayout>-->
  93 +
  94 +
  95 + <!--</FrameLayout>-->
  96 +<LinearLayout
  97 + android:layout_width="match_parent"
  98 + android:layout_height="match_parent"></LinearLayout>
  99 +
  100 + <!--<com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:sothree="http://schemas.android.com/apk/res-auto"-->
  101 + <!--android:id="@+id/sliding_layout"-->
  102 + <!--android:layout_width="match_parent"-->
  103 + <!--android:layout_height="match_parent"-->
  104 + <!--android:gravity="bottom"-->
  105 + <!--sothree:umanoDragView="@+id/dragView"-->
  106 + <!--sothree:umanoOverlay="true"-->
  107 + <!--sothree:umanoPanelHeight="68dp"-->
  108 + <!--sothree:umanoParallaxOffset="100dp"-->
  109 + <!--sothree:umanoScrollableView="@+id/list"-->
  110 + <!--sothree:umanoShadowHeight="4dp">-->
  111 +
  112 + <!--&lt;!&ndash; MAIN CONTENT &ndash;&gt;-->
  113 + <!--<FrameLayout-->
  114 + <!--android:layout_width="match_parent"-->
  115 + <!--android:layout_height="match_parent"-->
  116 + <!--android:orientation="vertical">-->
  117 +
  118 + <!--<TextView-->
  119 + <!--android:id="@+id/main"-->
  120 + <!--android:layout_width="match_parent"-->
  121 + <!--android:layout_height="match_parent"-->
  122 + <!--android:layout_marginTop="?attr/actionBarSize"-->
  123 + <!--android:clickable="true"-->
  124 + <!--android:focusable="false"-->
  125 + <!--android:focusableInTouchMode="true"-->
  126 + <!--android:gravity="center"-->
  127 + <!--android:text="Main Content"-->
  128 + <!--android:textSize="16sp" />-->
  129 + <!--</FrameLayout>-->
  130 +
  131 + <!--&lt;!&ndash; SLIDING LAYOUT &ndash;&gt;-->
  132 + <!--<LinearLayout-->
  133 + <!--android:id="@+id/dragView"-->
  134 + <!--android:layout_width="match_parent"-->
  135 + <!--android:layout_height="match_parent"-->
  136 + <!--android:background="#ffffff"-->
  137 + <!--android:clickable="true"-->
  138 + <!--android:focusable="false"-->
  139 + <!--android:orientation="vertical">-->
  140 +
  141 + <!--<LinearLayout-->
  142 + <!--android:layout_width="match_parent"-->
  143 + <!--android:layout_height="68dp"-->
  144 + <!--android:orientation="horizontal">-->
  145 +
  146 + <!--<TextView-->
  147 + <!--android:id="@+id/name"-->
  148 + <!--android:layout_width="0dp"-->
  149 + <!--android:layout_height="match_parent"-->
  150 + <!--android:layout_weight="1"-->
  151 + <!--android:gravity="center_vertical"-->
  152 + <!--android:paddingLeft="10dp"-->
  153 + <!--android:textSize="14sp" />-->
  154 +
  155 + <!--<Button-->
  156 + <!--android:id="@+id/follow"-->
  157 + <!--android:layout_width="wrap_content"-->
  158 + <!--android:layout_height="match_parent"-->
  159 + <!--android:gravity="center_vertical|right"-->
  160 + <!--android:paddingLeft="10dp"-->
  161 + <!--android:paddingRight="10dp"-->
  162 + <!--android:textSize="14sp" />-->
  163 +
  164 + <!--</LinearLayout>-->
  165 +
  166 + <!--<include-->
  167 + <!--android:id="@+id/list"-->
  168 + <!--layout="@layout/layout_run_detail_street" />-->
  169 +
  170 + <!--&lt;!&ndash;<ScrollView&ndash;&gt;-->
  171 + <!--&lt;!&ndash;android:id="@+id/sv"&ndash;&gt;-->
  172 + <!--&lt;!&ndash;android:layout_width="match_parent"&ndash;&gt;-->
  173 + <!--&lt;!&ndash;android:layout_height="0dp"&ndash;&gt;-->
  174 + <!--&lt;!&ndash;android:layout_weight="1"&ndash;&gt;-->
  175 + <!--&lt;!&ndash;>&ndash;&gt;-->
  176 + <!--&lt;!&ndash;<TextView&ndash;&gt;-->
  177 + <!--&lt;!&ndash;android:layout_width="match_parent"&ndash;&gt;-->
  178 + <!--&lt;!&ndash;android:layout_height="wrap_content"&ndash;&gt;-->
  179 + <!--&lt;!&ndash;android:text="The standard Lorem Ipsum passage, used since the 1500Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Section 1.10.32 of written by Cicero in 45 t perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?1914 translation by H. RackhamBut I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete accouof the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."/>&ndash;&gt;-->
  180 + <!--&lt;!&ndash;</ScrollView>&ndash;&gt;-->
  181 + <!--</LinearLayout>-->
  182 + <!--</com.sothree.slidinguppanel.SlidingUpPanelLayout>-->
  183 +
68 184
69 </layout> 185 </layout>
70 \ No newline at end of file 186 \ No newline at end of file
moudle_pedometer/src/main/res/layout/layout_run_detail_person_score.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:layout_width="match_parent"
  4 + android:layout_height="wrap_content">
  5 + <!--个人最佳成绩-->
  6 + <LinearLayout
  7 + android:layout_width="match_parent"
  8 + android:layout_height="150dp"
  9 + android:layout_marginLeft="10dp"
  10 + android:layout_marginTop="20dp"
  11 + android:layout_marginRight="10dp"
  12 + android:layout_marginBottom="10dp"
  13 + android:background="@drawable/shape_10dp_white_raduis_bg"
  14 + android:orientation="vertical">
  15 +
  16 + <LinearLayout
  17 + android:layout_width="match_parent"
  18 + android:layout_height="wrap_content"
  19 + android:layout_marginTop="15dp"
  20 + android:gravity="bottom">
  21 +
  22 + <TextView
  23 + android:id="@+id/tv_score_title"
  24 + android:layout_width="0dp"
  25 + android:layout_height="wrap_content"
  26 + android:layout_marginLeft="10dp"
  27 + android:layout_weight="1"
  28 + android:text="个人最佳成绩"
  29 + android:textColor="@color/black"
  30 + android:textSize="18sp"
  31 + android:textStyle="bold" />
  32 +
  33 + <TextView
  34 + android:layout_width="wrap_content"
  35 + android:layout_height="wrap_content"
  36 + android:layout_marginRight="10dp"
  37 + android:text="查看全部成绩 >"
  38 + android:textColor="@color/black"
  39 + android:textSize="13sp" />
  40 + </LinearLayout>
  41 + <!---->
  42 + <LinearLayout
  43 + android:layout_width="match_parent"
  44 + android:layout_height="match_parent">
  45 +
  46 + <LinearLayout
  47 + android:layout_width="0dp"
  48 + android:layout_height="match_parent"
  49 + android:layout_weight="1"
  50 + android:gravity="center"
  51 + android:orientation="vertical">
  52 +
  53 + <TextView
  54 + android:layout_width="wrap_content"
  55 + android:layout_height="wrap_content"
  56 + android:text="1.53"
  57 + android:textColor="@color/black"
  58 + android:textSize="20sp"
  59 + android:textStyle="bold" />
  60 +
  61 + <TextView
  62 + android:layout_width="wrap_content"
  63 + android:layout_height="wrap_content"
  64 + android:layout_marginTop="10dp"
  65 + android:text="公里"
  66 + android:textColor="@color/text_gray"
  67 + android:textSize="15sp"
  68 + android:textStyle="bold" />
  69 + </LinearLayout>
  70 +
  71 + <LinearLayout
  72 + android:layout_width="0dp"
  73 + android:layout_height="match_parent"
  74 + android:layout_weight="1"
  75 + android:gravity="center"
  76 + android:orientation="vertical">
  77 +
  78 + <TextView
  79 + android:layout_width="wrap_content"
  80 + android:layout_height="wrap_content"
  81 + android:text="1234"
  82 + android:textColor="@color/black"
  83 + android:textSize="20sp"
  84 + android:textStyle="bold" />
  85 +
  86 + <TextView
  87 + android:layout_width="wrap_content"
  88 + android:layout_height="wrap_content"
  89 + android:layout_marginTop="10dp"
  90 + android:text="步数"
  91 + android:textColor="@color/text_gray"
  92 + android:textSize="15sp"
  93 + android:textStyle="bold" />
  94 + </LinearLayout>
  95 +
  96 + <LinearLayout
  97 + android:layout_width="0dp"
  98 + android:layout_height="match_parent"
  99 + android:layout_weight="1.5"
  100 + android:gravity="center"
  101 + android:orientation="vertical">
  102 +
  103 + <TextView
  104 + android:layout_width="wrap_content"
  105 + android:layout_height="wrap_content"
  106 + android:text="00:27:23"
  107 + android:textColor="@color/black"
  108 + android:textSize="20sp"
  109 + android:textStyle="bold" />
  110 +
  111 + <TextView
  112 + android:layout_width="wrap_content"
  113 + android:layout_height="wrap_content"
  114 + android:layout_marginTop="10dp"
  115 + android:text="用时"
  116 + android:textColor="@color/text_gray"
  117 + android:textSize="15sp"
  118 + android:textStyle="bold" />
  119 + </LinearLayout>
  120 +
  121 + <LinearLayout
  122 + android:layout_width="0dp"
  123 + android:layout_height="match_parent"
  124 + android:layout_weight="1"
  125 + android:gravity="center"
  126 + android:orientation="vertical">
  127 +
  128 + <TextView
  129 + android:layout_width="wrap_content"
  130 + android:layout_height="wrap_content"
  131 + android:text="99"
  132 + android:textColor="@color/black"
  133 + android:textSize="20sp"
  134 + android:textStyle="bold" />
  135 +
  136 + <TextView
  137 + android:layout_width="wrap_content"
  138 + android:layout_height="wrap_content"
  139 + android:layout_marginTop="10dp"
  140 + android:text="千卡"
  141 + android:textColor="@color/text_gray"
  142 + android:textSize="15sp"
  143 + android:textStyle="bold" />
  144 + </LinearLayout>
  145 + </LinearLayout>
  146 + </LinearLayout>
  147 +</LinearLayout>
0 \ No newline at end of file 148 \ No newline at end of file
moudle_pedometer/src/main/res/layout/layout_run_detail_rank.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + xmlns:FivePersonIconView="http://schemas.android.com/apk/res-auto"
  4 + xmlns:app="http://schemas.android.com/apk/res-auto"
  5 + android:layout_width="match_parent"
  6 + android:layout_height="wrap_content">
  7 + <!--排行榜-->
  8 + <LinearLayout
  9 + android:layout_width="match_parent"
  10 + android:layout_height="150dp"
  11 + android:layout_margin="10dp"
  12 + android:background="@drawable/shape_10dp_white_raduis_bg"
  13 + android:orientation="vertical">
  14 +
  15 + <LinearLayout
  16 + android:layout_width="match_parent"
  17 + android:layout_height="wrap_content"
  18 + android:layout_marginTop="15dp"
  19 + android:gravity="bottom">
  20 +
  21 + <TextView
  22 + android:id="@+id/tv_rank_title"
  23 + android:layout_width="0dp"
  24 + android:layout_height="wrap_content"
  25 + android:layout_marginLeft="10dp"
  26 + android:layout_weight="1"
  27 + android:text="排行榜"
  28 + android:textColor="@color/black"
  29 + android:textSize="18sp"
  30 + android:textStyle="bold" />
  31 +
  32 + <TextView
  33 + android:layout_width="wrap_content"
  34 + android:layout_height="wrap_content"
  35 + android:layout_marginRight="10dp"
  36 + android:text="查看排行榜 >"
  37 + android:textColor="@color/black"
  38 + android:textSize="13sp" />
  39 + </LinearLayout>
  40 + <!---->
  41 + <LinearLayout
  42 + android:layout_width="match_parent"
  43 + android:layout_height="match_parent">
  44 +
  45 + <LinearLayout
  46 + android:layout_width="0dp"
  47 + android:layout_height="match_parent"
  48 + android:layout_weight="1"
  49 + android:gravity="center"
  50 + android:orientation="vertical">
  51 +
  52 + <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView
  53 + android:id="@+id/five_rank_person"
  54 + android:layout_width="wrap_content"
  55 + android:layout_height="35dp"
  56 + FivePersonIconView:showRightFlag="false"></com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView>
  57 +
  58 + <LinearLayout
  59 + android:layout_width="wrap_content"
  60 + android:layout_height="wrap_content"
  61 + android:layout_marginTop="5dp"
  62 + android:gravity="bottom">
  63 +
  64 + <TextView
  65 + android:layout_width="wrap_content"
  66 + android:layout_height="wrap_content"
  67 + android:text="1234"
  68 + android:textColor="@color/black"
  69 + android:textSize="15sp"
  70 + android:textStyle="bold" />
  71 +
  72 + <TextView
  73 + android:layout_width="wrap_content"
  74 + android:layout_height="wrap_content"
  75 + android:layout_marginTop="5dp"
  76 + android:text="人已完成"
  77 + android:textColor="@color/text_gray"
  78 + android:textSize="15sp" />
  79 + </LinearLayout>
  80 + </LinearLayout>
  81 + <!--右侧-->
  82 + <LinearLayout
  83 + android:layout_width="0dp"
  84 + android:layout_height="match_parent"
  85 + android:layout_weight="1"
  86 + android:gravity="center">
  87 +
  88 + <LinearLayout
  89 + android:layout_width="0dp"
  90 + android:layout_height="match_parent"
  91 + android:layout_weight="1"
  92 + android:gravity="center"
  93 + android:orientation="vertical">
  94 +
  95 +
  96 + <TextView
  97 + android:layout_width="wrap_content"
  98 + android:layout_height="wrap_content"
  99 + android:text="1234步"
  100 + android:textColor="@color/black"
  101 + android:textSize="20sp"
  102 + android:textStyle="bold" />
  103 +
  104 + <TextView
  105 + android:layout_width="wrap_content"
  106 + android:layout_height="wrap_content"
  107 + android:layout_marginTop="15dp"
  108 + android:text="用户昵称"
  109 + android:textColor="@color/text_gray"
  110 + android:textSize="15sp" />
  111 +
  112 + <!---->
  113 + </LinearLayout>
  114 +
  115 + <LinearLayout
  116 + android:layout_width="0dp"
  117 + android:layout_height="match_parent"
  118 + android:layout_weight="1"
  119 + android:gravity="center">
  120 +
  121 + <com.qmuiteam.qmui.widget.QMUIRadiusImageView
  122 + android:layout_width="60dp"
  123 + android:layout_height="60dp"
  124 + android:background="@drawable/tc_ic_workout_level_adjust_coach"
  125 + app:qmui_corner_radius="100dp" />
  126 + </LinearLayout>
  127 + <!---->
  128 + </LinearLayout>
  129 +
  130 + </LinearLayout>
  131 + </LinearLayout>
  132 +</LinearLayout>
0 \ No newline at end of file 133 \ No newline at end of file
moudle_pedometer/src/main/res/layout/layout_run_detail_street.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + xmlns:FivePersonIconView="http://schemas.android.com/apk/res-auto"
  4 + android:layout_width="match_parent"
  5 + android:layout_height="wrap_content">
  6 +
  7 + <LinearLayout
  8 + android:layout_width="match_parent"
  9 + android:layout_height="wrap_content"
  10 + android:orientation="vertical"
  11 + android:paddingLeft="10dp">
  12 + <!--活动标题-->
  13 + <TextView
  14 + android:id="@+id/tv_race_title"
  15 + android:layout_width="wrap_content"
  16 + android:layout_height="wrap_content"
  17 + android:layout_marginTop="10dp"
  18 + android:text="奥森南园跑道"
  19 + android:textSize="18sp"
  20 + android:textStyle="bold" />
  21 + <!--活动地点-->
  22 + <LinearLayout
  23 + android:layout_width="match_parent"
  24 + android:layout_height="wrap_content"
  25 + android:layout_marginTop="10dp">
  26 +
  27 + <ImageView
  28 + android:layout_width="20dp"
  29 + android:layout_height="20dp"
  30 + android:background="@drawable/icon_race_location_green" />
  31 +
  32 + <TextView
  33 + android:layout_width="wrap_content"
  34 + android:layout_height="wrap_content"
  35 + android:layout_marginLeft="5dp"
  36 + android:text="活动地点"
  37 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  38 + android:textSize="14sp" />
  39 + </LinearLayout>
  40 + <!--活动地点详情-->
  41 + <LinearLayout
  42 + android:layout_width="match_parent"
  43 + android:layout_height="wrap_content"
  44 + android:layout_marginTop="10dp">
  45 +
  46 + <TextView
  47 + android:layout_width="wrap_content"
  48 + android:layout_height="wrap_content"
  49 + android:layout_marginLeft="25dp"
  50 + android:text="北京"
  51 + android:textColor="@color/black"
  52 + android:textSize="15sp" />
  53 +
  54 + <TextView
  55 + android:layout_width="wrap_content"
  56 + android:layout_height="wrap_content"
  57 + android:layout_marginLeft="25dp"
  58 + android:text="首都师范大学"
  59 + android:textColor="@color/black"
  60 + android:textSize="15sp" />
  61 +
  62 + <TextView
  63 + android:layout_width="wrap_content"
  64 + android:layout_height="wrap_content"
  65 + android:layout_marginLeft="25dp"
  66 + android:text="全长4.42公里"
  67 + android:textColor="@color/black"
  68 + android:textSize="15sp" />
  69 + </LinearLayout>
  70 + <!--起点-->
  71 + <LinearLayout
  72 + android:layout_width="match_parent"
  73 + android:layout_height="wrap_content"
  74 + android:layout_marginTop="10dp"
  75 + android:gravity="center_vertical">
  76 +
  77 + <View
  78 + android:layout_width="10dp"
  79 + android:layout_height="10dp"
  80 + android:layout_marginLeft="25dp"
  81 + android:background="@drawable/shape_circle_green" />
  82 +
  83 + <TextView
  84 + android:layout_width="wrap_content"
  85 + android:layout_height="wrap_content"
  86 + android:layout_marginLeft="10dp"
  87 + android:text="(起)"
  88 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  89 + android:textSize="14sp" />
  90 +
  91 + <TextView
  92 + android:layout_width="wrap_content"
  93 + android:layout_height="wrap_content"
  94 + android:layout_marginLeft="10dp"
  95 + android:text="首都师范大学操场东门"
  96 + android:textColor="@color/black"
  97 + android:textSize="15sp" />
  98 + </LinearLayout>
  99 + <!--终点-->
  100 + <LinearLayout
  101 + android:id="@+id/ll_end_point"
  102 + android:layout_width="match_parent"
  103 + android:layout_height="wrap_content"
  104 + android:layout_marginTop="10dp"
  105 + android:gravity="center_vertical">
  106 +
  107 + <View
  108 + android:layout_width="10dp"
  109 + android:layout_height="10dp"
  110 + android:layout_marginLeft="25dp"
  111 + android:background="@drawable/shape_circle_red" />
  112 +
  113 + <TextView
  114 + android:layout_width="wrap_content"
  115 + android:layout_height="wrap_content"
  116 + android:layout_marginLeft="10dp"
  117 + android:text="(止)"
  118 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  119 + android:textSize="14sp" />
  120 +
  121 + <TextView
  122 + android:layout_width="wrap_content"
  123 + android:layout_height="wrap_content"
  124 + android:layout_marginLeft="10dp"
  125 + android:text="首都师范大学操场西门"
  126 + android:textColor="@color/black"
  127 + android:textSize="15sp" />
  128 + </LinearLayout>
  129 + <!--报名时间-->
  130 + <LinearLayout
  131 + android:layout_width="match_parent"
  132 + android:layout_height="wrap_content"
  133 + android:layout_marginTop="10dp">
  134 +
  135 + <ImageView
  136 + android:layout_width="20dp"
  137 + android:layout_height="20dp"
  138 + android:background="@drawable/icon_race_location_green" />
  139 +
  140 + <TextView
  141 + android:layout_width="wrap_content"
  142 + android:layout_height="wrap_content"
  143 + android:layout_marginLeft="5dp"
  144 + android:text="报名时间"
  145 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  146 + android:textSize="14sp" />
  147 + </LinearLayout>
  148 + <!--时间-->
  149 + <LinearLayout
  150 + android:layout_width="match_parent"
  151 + android:layout_height="wrap_content"
  152 + android:layout_marginTop="10dp">
  153 +
  154 + <TextView
  155 + android:layout_width="wrap_content"
  156 + android:layout_height="wrap_content"
  157 + android:layout_marginLeft="25dp"
  158 + android:text="2019.05.01"
  159 + android:textColor="@color/black"
  160 + android:textSize="15sp" />
  161 +
  162 + <TextView
  163 + android:layout_width="wrap_content"
  164 + android:layout_height="match_parent"
  165 + android:layout_marginLeft="5dp"
  166 + android:text="——"
  167 + android:textColor="@color/black"
  168 + android:textSize="15sp" />
  169 +
  170 + <TextView
  171 + android:layout_width="wrap_content"
  172 + android:layout_height="wrap_content"
  173 + android:layout_marginLeft="5dp"
  174 + android:text="2019.09.01"
  175 + android:textColor="@color/black"
  176 + android:textSize="15sp" />
  177 + </LinearLayout>
  178 +
  179 + <View
  180 + android:layout_width="match_parent"
  181 + android:layout_height="1dp"
  182 + android:layout_marginTop="5dp"
  183 + android:background="@color/line" />
  184 + <!--活动时间-->
  185 + <LinearLayout
  186 + android:layout_width="match_parent"
  187 + android:layout_height="wrap_content"
  188 + android:layout_marginTop="10dp">
  189 +
  190 + <ImageView
  191 + android:layout_width="20dp"
  192 + android:layout_height="20dp"
  193 + android:background="@drawable/icon_race_location_green" />
  194 +
  195 + <TextView
  196 + android:layout_width="wrap_content"
  197 + android:layout_height="wrap_content"
  198 + android:layout_marginLeft="5dp"
  199 + android:text="活动时间"
  200 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  201 + android:textSize="14sp" />
  202 + </LinearLayout>
  203 + <!--活动时间的具体日期-->
  204 + <LinearLayout
  205 + android:layout_width="match_parent"
  206 + android:layout_height="wrap_content"
  207 + android:layout_marginTop="10dp">
  208 +
  209 + <TextView
  210 + android:layout_width="wrap_content"
  211 + android:layout_height="wrap_content"
  212 + android:layout_marginLeft="25dp"
  213 + android:text="2019.05.01"
  214 + android:textColor="@color/black"
  215 + android:textSize="15sp" />
  216 +
  217 + <TextView
  218 + android:layout_width="wrap_content"
  219 + android:layout_height="match_parent"
  220 + android:layout_marginLeft="5dp"
  221 + android:text="——"
  222 + android:textColor="@color/black"
  223 + android:textSize="15sp" />
  224 +
  225 + <TextView
  226 + android:layout_width="wrap_content"
  227 + android:layout_height="wrap_content"
  228 + android:layout_marginLeft="5dp"
  229 + android:text="2019.09.01"
  230 + android:textColor="@color/black"
  231 + android:textSize="15sp" />
  232 + </LinearLayout>
  233 +
  234 + <View
  235 + android:layout_width="match_parent"
  236 + android:layout_height="1dp"
  237 + android:layout_marginTop="5dp"
  238 + android:background="@color/line" />
  239 + <!--参与人数-->
  240 + <LinearLayout
  241 + android:layout_width="match_parent"
  242 + android:layout_height="wrap_content"
  243 + android:layout_marginTop="10dp">
  244 +
  245 + <ImageView
  246 + android:layout_width="20dp"
  247 + android:layout_height="20dp"
  248 + android:background="@drawable/icon_race_location_green" />
  249 +
  250 + <TextView
  251 + android:layout_width="wrap_content"
  252 + android:layout_height="wrap_content"
  253 + android:layout_marginLeft="5dp"
  254 + android:text="参与人数"
  255 + android:textColor="@color/bottom_sheet_dialog_race_location_text"
  256 + android:textSize="14sp" />
  257 + </LinearLayout>
  258 + <!--相关的人数-->
  259 + <LinearLayout
  260 + android:layout_width="match_parent"
  261 + android:layout_height="wrap_content"
  262 + android:gravity="center_vertical">
  263 +
  264 + <TextView
  265 + android:layout_width="wrap_content"
  266 + android:layout_height="wrap_content"
  267 + android:layout_marginLeft="25dp"
  268 + android:text="123"
  269 + android:textColor="@color/black"
  270 + android:textSize="17sp"
  271 + android:textStyle="bold" />
  272 +
  273 + <TextView
  274 + android:layout_width="wrap_content"
  275 + android:layout_height="wrap_content"
  276 + android:layout_marginLeft="5dp"
  277 + android:text="人参与"
  278 + android:textColor="@color/black"
  279 + android:textSize="15sp" />
  280 +
  281 + <LinearLayout
  282 + android:layout_width="match_parent"
  283 + android:layout_height="wrap_content"
  284 + android:gravity="right|center">
  285 +
  286 + <com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView
  287 + android:id="@+id/five_join_person"
  288 + android:layout_width="match_parent"
  289 + android:layout_height="40dp"
  290 + android:layout_marginRight="10dp"
  291 + FivePersonIconView:showRightFlag="true"></com.cnlive.moudle.pedometer.ui.widget.FivePersonIconView>
  292 +
  293 +
  294 + </LinearLayout>
  295 + </LinearLayout>
  296 + <!---->
  297 + </LinearLayout>
  298 +</LinearLayout>
0 \ No newline at end of file 299 \ No newline at end of file
moudle_pedometer/src/main/res/layout/layout_run_detail_street_introduce.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:layout_width="match_parent"
  4 + android:layout_height="wrap_content"
  5 + android:orientation="vertical"
  6 + android:paddingLeft="10dp"
  7 + android:paddingRight="10dp">
  8 + <!--路线介绍-->
  9 + <TextView
  10 + android:id="@+id/tv_race_title"
  11 + android:layout_width="wrap_content"
  12 + android:layout_height="wrap_content"
  13 + android:layout_marginTop="10dp"
  14 + android:text="路线介绍"
  15 + android:textSize="18sp"
  16 + android:textStyle="bold" />
  17 +
  18 + <TextView
  19 + android:layout_width="wrap_content"
  20 + android:layout_height="wrap_content"
  21 + android:layout_marginTop="10dp"
  22 + android:text="路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍路线介绍"
  23 + android:textColor="@color/black"
  24 + android:textSize="15sp" />
  25 +
  26 + <!--地图-->
  27 + <TextView
  28 + android:layout_width="wrap_content"
  29 + android:layout_height="wrap_content"
  30 + android:layout_marginTop="10dp"
  31 + android:text="路线地图"
  32 + android:textSize="18sp"
  33 + android:textStyle="bold" />
  34 +
  35 + <ImageView
  36 + android:layout_width="match_parent"
  37 + android:layout_height="500dp"
  38 + android:layout_marginTop="10dp"
  39 + android:layout_marginBottom="10dp"
  40 + android:background="@drawable/map"
  41 + android:scaleType="center" />
  42 +</LinearLayout>
0 \ No newline at end of file 43 \ No newline at end of file
moudle_pedometer/src/main/res/values/attrs.xml
@@ -17,4 +17,25 @@ @@ -17,4 +17,25 @@
17 <declare-styleable name="FivePersonIconView"> 17 <declare-styleable name="FivePersonIconView">
18 <attr name="showRightFlag" format="boolean" /> 18 <attr name="showRightFlag" format="boolean" />
19 </declare-styleable> 19 </declare-styleable>
  20 +
  21 +
  22 + <declare-styleable name="ScrollLayout">
  23 +
  24 + <attr name="minOffset" format="dimension" />
  25 +
  26 + <attr name="maxOffset" format="dimension" />
  27 +
  28 + <attr name="exitOffset" format="dimension" />
  29 +
  30 + <attr name="mode">
  31 + <flag name="open" value="0x0" />
  32 + <flag name="close" value="0x1" />
  33 + <flag name="exit" value="0x2" />
  34 + </attr>
  35 +
  36 + <attr name="allowHorizontalScroll" format="boolean" />
  37 +
  38 + <attr name="isSupportExit" format="boolean" />
  39 +
  40 + </declare-styleable>
20 </resources> 41 </resources>
21 \ No newline at end of file 42 \ No newline at end of file
moudle_pedometer/src/main/res/values/styles.xml
1 <resources> 1 <resources>
2 2
3 - <style name="AppTheme" parent="Theme.AppCompat.Light" /> 3 + <style name="AppTheme" parent="Theme.AppCompat.Light">
  4 + <item name="android:windowActionBarOverlay">true</item>
  5 +
  6 + </style>
4 7
5 <style name="AppTheme.NoActionBar"> 8 <style name="AppTheme.NoActionBar">
6 <item name="windowActionBar">false</item> 9 <item name="windowActionBar">false</item>
@@ -20,4 +23,5 @@ @@ -20,4 +23,5 @@
20 <item name="android:windowContentOverlay">@null</item> 23 <item name="android:windowContentOverlay">@null</item>
21 <item name="android:background">@android:color/transparent</item> 24 <item name="android:background">@android:color/transparent</item>
22 </style> 25 </style>
  26 +
23 </resources> 27 </resources>