Commit d537810ccc25ab42ad89f871a97caad446ed7fe1

Authored by 杨帅
2 parents 0661b519 16b86181
config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "0.2.3", 24 + version: "0.2.4",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.module", 26 packeg : "com.cnlive.module",
27 //Lib库名称 27 //Lib库名称
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/RaceNameListView.java
@@ -41,7 +41,7 @@ public class RaceNameListView implements MvpView { @@ -41,7 +41,7 @@ public class RaceNameListView implements MvpView {
41 public void initView(){ 41 public void initView(){
42 fragment.binding.raceBack.setOnClickListener(v -> fragment.getActivity().finish()); 42 fragment.binding.raceBack.setOnClickListener(v -> fragment.getActivity().finish());
43 fragment.binding.intoPath.setOnClickListener(v -> StartCollectTraceActivity.newInstance(fragment.getActivity(),fragment.eventId)); 43 fragment.binding.intoPath.setOnClickListener(v -> StartCollectTraceActivity.newInstance(fragment.getActivity(),fragment.eventId));
44 - fragment.binding.raceTittle.setText("赛事轨迹列表"); 44 + fragment.binding.raceTittle.setText("轨迹列表");
45 fragment.binding.refreshLayout.setRefreshHeader(new ClassicsHeader(fragment.getActivity())); 45 fragment.binding.refreshLayout.setRefreshHeader(new ClassicsHeader(fragment.getActivity()));
46 fragment.binding.refreshLayout.setRefreshFooter(new ClassicsFooter(fragment.getActivity())); 46 fragment.binding.refreshLayout.setRefreshFooter(new ClassicsFooter(fragment.getActivity()));
47 fragment.binding.raceRecy.setLayoutManager(new LinearLayoutManager(fragment.getActivity())); 47 fragment.binding.raceRecy.setLayoutManager(new LinearLayoutManager(fragment.getActivity()));
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/frame/view/RunRaceDetailFragmentView.java
@@ -40,6 +40,7 @@ import com.baidu.trace.model.SortType; @@ -40,6 +40,7 @@ import com.baidu.trace.model.SortType;
40 import com.cnlive.libs.base.util.StatusBarUtil2; 40 import com.cnlive.libs.base.util.StatusBarUtil2;
41 import com.cnlive.moudle.pedometer.commonInfo.CommonInfo; 41 import com.cnlive.moudle.pedometer.commonInfo.CommonInfo;
42 import com.cnlive.moudle.pedometer.model.Constant; 42 import com.cnlive.moudle.pedometer.model.Constant;
  43 +import com.cnlive.moudle.pedometer.net.SubscriptionRequest;
43 import com.cnlive.moudle.pedometer.net.bean.RunRaceDetailInfo; 44 import com.cnlive.moudle.pedometer.net.bean.RunRaceDetailInfo;
44 import com.cnlive.moudle.pedometer.service.KeepLiveService; 45 import com.cnlive.moudle.pedometer.service.KeepLiveService;
45 import com.cnlive.moudle.pedometer.service.StepService; 46 import com.cnlive.moudle.pedometer.service.StepService;
@@ -632,7 +633,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { @@ -632,7 +633,7 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
632 @Override 633 @Override
633 public void onClick(View view) { 634 public void onClick(View view) {
634 ARouter.getInstance().build("/web/WebViewColorActivity") 635 ARouter.getInstance().build("/web/WebViewColorActivity")
635 - .withString("url", "http://wjjh5test.cnlive.com/cnSportList.html" + "?sid=" + CommonInfo.getUserId(fragment.getActivity()) + "&eventId=" + CommonInfo.getStreetId(fragment.getActivity())) 636 + .withString("url", SubscriptionRequest.baseEndpoint()+"cnSportList.html" + "?sid=" + CommonInfo.getUserId(fragment.getActivity()) + "&eventId=" + CommonInfo.getStreetId(fragment.getActivity()))
636 .withString("title", "排行榜") 637 .withString("title", "排行榜")
637 .navigation(fragment.getActivity()); 638 .navigation(fragment.getActivity());
638 } 639 }
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/adapter/MyRecordAdapter.java
@@ -13,6 +13,7 @@ import android.widget.TextView; @@ -13,6 +13,7 @@ import android.widget.TextView;
13 13
14 import com.alibaba.android.arouter.launcher.ARouter; 14 import com.alibaba.android.arouter.launcher.ARouter;
15 import com.cnlive.moudle.pedometer.commonInfo.CommonInfo; 15 import com.cnlive.moudle.pedometer.commonInfo.CommonInfo;
  16 +import com.cnlive.moudle.pedometer.net.SubscriptionRequest;
16 import com.cnlive.moudle.pedometer.net.bean.MyRecordInfo; 17 import com.cnlive.moudle.pedometer.net.bean.MyRecordInfo;
17 import com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity; 18 import com.cnlive.moudle.pedometer.ui.activity.RaceRecordActivity;
18 import com.cnlive.moudle.pedometer.ui.activity.SelfRecordActivity; 19 import com.cnlive.moudle.pedometer.ui.activity.SelfRecordActivity;
@@ -57,7 +58,7 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView @@ -57,7 +58,7 @@ public class MyRecordAdapter extends RecyclerView.Adapter<MyRecordAdapter.MyView
57 myViewHolder.my_record.setOnClickListener(v -> startAc(list.get(i))); 58 myViewHolder.my_record.setOnClickListener(v -> startAc(list.get(i)));
58 myViewHolder.check_raking.setOnClickListener(v -> 59 myViewHolder.check_raking.setOnClickListener(v ->
59 ARouter.getInstance().build("/web/WebViewColorActivity") 60 ARouter.getInstance().build("/web/WebViewColorActivity")
60 - .withString("url", "http://wjjh5test.cnlive.com/cnSportListOver.html"+"?sid="+CommonInfo.getUserId(context)+"&eventId="+list.get(i).getId()) 61 + .withString("url", SubscriptionRequest.baseEndpoint()+"cnSportListOver.html"+"?sid="+CommonInfo.getUserId(context)+"&eventId="+list.get(i).getId())
61 .withString("title","总排行榜") 62 .withString("title","总排行榜")
62 .navigation(context)); 63 .navigation(context));
63 if (clickListener != null) { 64 if (clickListener != null) {
moudle_pedometer/src/main/res/drawable-hdpi/bg_bg.png 0 → 100644

3.49 KB

moudle_pedometer/src/main/res/drawable-xhdpi/bg_bg.png 0 → 100644

5.18 KB

moudle_pedometer/src/main/res/drawable-xxhdpi/bg_bg.png 0 → 100644

10.6 KB

moudle_pedometer/src/main/res/layout/fragment_race_name_list.xml
@@ -52,10 +52,7 @@ @@ -52,10 +52,7 @@
52 <android.support.v7.widget.RecyclerView 52 <android.support.v7.widget.RecyclerView
53 android:id="@+id/race_recy" 53 android:id="@+id/race_recy"
54 android:layout_width="match_parent" 54 android:layout_width="match_parent"
55 - android:layout_height="match_parent"  
56 - android:layout_marginTop="5dp"  
57 - android:layout_marginLeft="5dp"  
58 - android:layout_marginRight="5dp"/> 55 + android:layout_height="match_parent"/>
59 </com.scwang.smartrefresh.layout.SmartRefreshLayout> 56 </com.scwang.smartrefresh.layout.SmartRefreshLayout>
60 57
61 <com.cnlive.strike.ui.widget.UIEmptyView 58 <com.cnlive.strike.ui.widget.UIEmptyView
moudle_pedometer/src/main/res/layout/item_race_name_list.xml
@@ -2,11 +2,12 @@ @@ -2,11 +2,12 @@
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:layout_margin="5dp"  
6 android:orientation="vertical" 5 android:orientation="vertical"
7 android:id="@+id/shoe_ly" 6 android:id="@+id/shoe_ly"
8 - android:background="@color/white"  
9 - android:padding="10dp"> 7 + android:layout_marginLeft="5dp"
  8 + android:layout_marginRight="5dp"
  9 + android:background="@drawable/background"
  10 + android:padding="15dp">
10 11
11 <LinearLayout 12 <LinearLayout
12 android:layout_width="match_parent" 13 android:layout_width="match_parent"
@@ -99,7 +100,7 @@ @@ -99,7 +100,7 @@
99 <LinearLayout 100 <LinearLayout
100 android:layout_width="match_parent" 101 android:layout_width="match_parent"
101 android:layout_height="wrap_content" 102 android:layout_height="wrap_content"
102 - android:layout_marginTop="5dp"> 103 + android:layout_marginTop="10dp">
103 104
104 <ImageView 105 <ImageView
105 android:layout_width="10dp" 106 android:layout_width="10dp"
@@ -151,9 +152,9 @@ @@ -151,9 +152,9 @@
151 android:layout_height="wrap_content" 152 android:layout_height="wrap_content"
152 android:layout_marginLeft="15dp" 153 android:layout_marginLeft="15dp"
153 android:background="@drawable/green_raduis_bg" 154 android:background="@drawable/green_raduis_bg"
154 - android:paddingLeft="10dp" 155 + android:paddingLeft="12dp"
155 android:paddingTop="7dp" 156 android:paddingTop="7dp"
156 - android:paddingRight="10dp" 157 + android:paddingRight="12dp"
157 android:paddingBottom="7dp" 158 android:paddingBottom="7dp"
158 android:text="@string/delect" 159 android:text="@string/delect"
159 android:textColor="#36C28D" 160 android:textColor="#36C28D"
moudle_pedometer/src/main/res/layout/item_record.xml
@@ -3,15 +3,14 @@ @@ -3,15 +3,14 @@
3 android:id="@+id/item_ly" 3 android:id="@+id/item_ly"
4 android:layout_width="match_parent" 4 android:layout_width="match_parent"
5 android:layout_height="wrap_content" 5 android:layout_height="wrap_content"
6 - android:layout_margin="5dp"  
7 - android:background="@color/white" 6 + android:background="@drawable/bg_bg"
8 android:orientation="vertical"> 7 android:orientation="vertical">
9 8
10 <LinearLayout 9 <LinearLayout
11 android:layout_width="match_parent" 10 android:layout_width="match_parent"
12 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
13 android:orientation="vertical" 12 android:orientation="vertical"
14 - android:padding="10dp"> 13 + android:padding="15dp">
15 14
16 <TextView 15 <TextView
17 android:id="@+id/line_name" 16 android:id="@+id/line_name"
@@ -80,9 +79,9 @@ @@ -80,9 +79,9 @@
80 android:layout_height="wrap_content" 79 android:layout_height="wrap_content"
81 android:layout_alignParentRight="true" 80 android:layout_alignParentRight="true"
82 android:background="@drawable/green_raduis_bg" 81 android:background="@drawable/green_raduis_bg"
83 - android:paddingLeft="10dp" 82 + android:paddingLeft="12dp"
84 android:paddingTop="7dp" 83 android:paddingTop="7dp"
85 - android:paddingRight="10dp" 84 + android:paddingRight="12dp"
86 android:paddingBottom="7dp" 85 android:paddingBottom="7dp"
87 android:text="轨迹列表" 86 android:text="轨迹列表"
88 android:textColor="#36C28D" 87 android:textColor="#36C28D"
@@ -95,12 +94,13 @@ @@ -95,12 +94,13 @@
95 android:layout_marginRight="10dp" 94 android:layout_marginRight="10dp"
96 android:layout_toLeftOf="@id/path_list" 95 android:layout_toLeftOf="@id/path_list"
97 android:background="@drawable/green_raduis_bg" 96 android:background="@drawable/green_raduis_bg"
98 - android:paddingLeft="10dp" 97 + android:paddingLeft="12dp"
99 android:paddingTop="7dp" 98 android:paddingTop="7dp"
100 - android:paddingRight="10dp" 99 + android:paddingRight="12dp"
101 android:paddingBottom="7dp" 100 android:paddingBottom="7dp"
102 android:text="添加轨迹" 101 android:text="添加轨迹"
103 android:textColor="#36C28D" 102 android:textColor="#36C28D"
  103 + android:layout_marginBottom="5dp"
104 android:textSize="12sp" /> 104 android:textSize="12sp" />
105 105
106 </RelativeLayout> 106 </RelativeLayout>