Commit c46aed541b31b546fef35f87f16f1a385202eeaa

Authored by 杨帅
1 parent 2c761cca

1 修复排行榜完成人数不显示的问题

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.4.0", 24 + version: "0.4.1",
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/pedometer/frame/view/RunRaceDetailFragmentView.java
@@ -431,6 +431,10 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener { @@ -431,6 +431,10 @@ public class RunRaceDetailFragmentView implements MvpView, SensorEventListener {
431 if (!TextUtils.isEmpty(runRaceDetailInfo.getFirstEmployTime())) { 431 if (!TextUtils.isEmpty(runRaceDetailInfo.getFirstEmployTime())) {
432 fragment.binding.includeRank.tvFirstTime.setText(TimeUtil.stampToChronometer(Long.parseLong(runRaceDetailInfo.getFirstEmployTime()))); 432 fragment.binding.includeRank.tvFirstTime.setText(TimeUtil.stampToChronometer(Long.parseLong(runRaceDetailInfo.getFirstEmployTime())));
433 } 433 }
  434 + //设置完成人数
  435 + if (!TextUtils.isEmpty(runRaceDetailInfo.getFinishNum())){
  436 + fragment.binding.includeRank.tvFinishPerson.setText(runRaceDetailInfo.getFinishNum());
  437 + }
434 } else { 438 } else {
435 fragment.binding.includeRank.llRankRoot.setVisibility(View.GONE); 439 fragment.binding.includeRank.llRankRoot.setVisibility(View.GONE);
436 440
moudle_pedometer/src/main/res/layout/layout_run_detail_rank.xml
@@ -73,7 +73,7 @@ @@ -73,7 +73,7 @@
73 android:id="@+id/tv_finish_person" 73 android:id="@+id/tv_finish_person"
74 android:layout_width="wrap_content" 74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content" 75 android:layout_height="wrap_content"
76 - android:text="--" 76 + android:text="0"
77 android:textColor="@color/black" 77 android:textColor="@color/black"
78 android:textSize="15sp" 78 android:textSize="15sp"
79 android:textStyle="bold" /> 79 android:textStyle="bold" />
@@ -91,7 +91,7 @@ @@ -91,7 +91,7 @@
91 <LinearLayout 91 <LinearLayout
92 android:layout_width="0dp" 92 android:layout_width="0dp"
93 android:layout_height="match_parent" 93 android:layout_height="match_parent"
94 - android:layout_weight="1.2" 94 + android:layout_weight="1.5"
95 android:gravity="center|right"> 95 android:gravity="center|right">
96 96
97 <LinearLayout 97 <LinearLayout
@@ -116,7 +116,10 @@ @@ -116,7 +116,10 @@
116 android:layout_height="wrap_content" 116 android:layout_height="wrap_content"
117 android:layout_marginTop="5dp" 117 android:layout_marginTop="5dp"
118 android:layout_marginBottom="5dp" 118 android:layout_marginBottom="5dp"
119 - android:text="用户昵称" 119 + android:ellipsize="end"
  120 + android:maxEms="6"
  121 + android:maxLines="1"
  122 + android:text="--"
120 android:textColor="@color/text_gray" 123 android:textColor="@color/text_gray"
121 android:textSize="12sp" /> 124 android:textSize="12sp" />
122 125