Commit c46aed541b31b546fef35f87f16f1a385202eeaa

Authored by 杨帅
1 parent 2c761cca

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

config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "0.4.0",
  24 + version: "0.4.1",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.module",
27 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 431 if (!TextUtils.isEmpty(runRaceDetailInfo.getFirstEmployTime())) {
432 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 438 } else {
435 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 73 android:id="@+id/tv_finish_person"
74 74 android:layout_width="wrap_content"
75 75 android:layout_height="wrap_content"
76   - android:text="--"
  76 + android:text="0"
77 77 android:textColor="@color/black"
78 78 android:textSize="15sp"
79 79 android:textStyle="bold" />
... ... @@ -91,7 +91,7 @@
91 91 <LinearLayout
92 92 android:layout_width="0dp"
93 93 android:layout_height="match_parent"
94   - android:layout_weight="1.2"
  94 + android:layout_weight="1.5"
95 95 android:gravity="center|right">
96 96  
97 97 <LinearLayout
... ... @@ -116,7 +116,10 @@
116 116 android:layout_height="wrap_content"
117 117 android:layout_marginTop="5dp"
118 118 android:layout_marginBottom="5dp"
119   - android:text="用户昵称"
  119 + android:ellipsize="end"
  120 + android:maxEms="6"
  121 + android:maxLines="1"
  122 + android:text="--"
120 123 android:textColor="@color/text_gray"
121 124 android:textSize="12sp" />
122 125  
... ...