Commit 995d96dc7aef045077416bd16c436548310d9fac

Authored by 韩亚云
1 parent 4fe6c6e0

分享页面用时格式修改

moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/activity/ShareRecordActivity.java
... ... @@ -21,6 +21,7 @@ import com.cnlive.libs.base.arouter.QrService;
21 21 import com.cnlive.libs.base.util.StatusBarUtil;
22 22 import com.cnlive.libs.base.util.StatusBarUtil2;
23 23 import com.cnlive.moudle.pedometer.commonInfo.CommonInfo;
  24 +import com.cnlive.moudle.pedometer.utils.TimeUtil;
24 25 import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsListener;
25 26 import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsUtils;
26 27 import com.example.moudle_pedometer.R;
... ... @@ -63,7 +64,7 @@ public class ShareRecordActivity extends AppCompatActivity {
63 64 cord_name.setText("我在中国网家家" + getIntent().getStringExtra("raceTitle") + "中的最佳成绩");
64 65 ((TextView) findViewById(R.id.kilo_share)).setText(getIntent().getStringExtra("kilo"));
65 66 ((TextView) findViewById(R.id.step_share)).setText(getIntent().getStringExtra("step"));
66   - ((TextView) findViewById(R.id.time_share)).setText(getIntent().getStringExtra("time"));
  67 + ((TextView) findViewById(R.id.time_share)).setText(TimeUtil.stampToChronometers(Double.parseDouble(getIntent().getStringExtra("time"))));
67 68 ((TextView) findViewById(R.id.speed_share)).setText(getIntent().getStringExtra("speed"));
68 69 share_back = findViewById(R.id.share_back);
69 70 share = findViewById(R.id.share);
... ... @@ -142,7 +143,6 @@ public class ShareRecordActivity extends AppCompatActivity {
142 143  
143 144 @Override
144 145 public void onGranted() {
145   - //判断GPS是否开启
146 146 share();
147 147 }
148 148 })
... ...
moudle_pedometer/src/main/res/layout/activity_share_record.xml
... ... @@ -245,7 +245,7 @@
245 245 android:layout_height="wrap_content"
246 246 android:layout_below="@id/tv_tv"
247 247 android:layout_marginTop="7dp"
248   - android:hint="点击这里写下你的心情标签心情标签心情标签最多两行"
  248 + android:hint="点击这里写下你的心情标签最多两行哦"
249 249 android:textColor="#999999"
250 250 android:background="@null"
251 251 android:maxLines="2"
... ...