Commit d45aabc599bc3910d686683cd5b7e389025b3be1

Authored by 韩亚云
1 parent 8b47b0b7

赛事列表轨迹列表页面修改

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/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>