Commit 995d96dc7aef045077416bd16c436548310d9fac
1 parent
4fe6c6e0
分享页面用时格式修改
Showing
2 changed files
with
3 additions
and
3 deletions
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,6 +21,7 @@ import com.cnlive.libs.base.arouter.QrService; | ||
| 21 | import com.cnlive.libs.base.util.StatusBarUtil; | 21 | import com.cnlive.libs.base.util.StatusBarUtil; |
| 22 | import com.cnlive.libs.base.util.StatusBarUtil2; | 22 | import com.cnlive.libs.base.util.StatusBarUtil2; |
| 23 | import com.cnlive.moudle.pedometer.commonInfo.CommonInfo; | 23 | import com.cnlive.moudle.pedometer.commonInfo.CommonInfo; |
| 24 | +import com.cnlive.moudle.pedometer.utils.TimeUtil; | ||
| 24 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsListener; | 25 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsListener; |
| 25 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsUtils; | 26 | import com.cnlive.moudle.pedometer.utils.lib_permisshelper.PermissionsUtils; |
| 26 | import com.example.moudle_pedometer.R; | 27 | import com.example.moudle_pedometer.R; |
| @@ -63,7 +64,7 @@ public class ShareRecordActivity extends AppCompatActivity { | @@ -63,7 +64,7 @@ public class ShareRecordActivity extends AppCompatActivity { | ||
| 63 | cord_name.setText("我在中国网家家" + getIntent().getStringExtra("raceTitle") + "中的最佳成绩"); | 64 | cord_name.setText("我在中国网家家" + getIntent().getStringExtra("raceTitle") + "中的最佳成绩"); |
| 64 | ((TextView) findViewById(R.id.kilo_share)).setText(getIntent().getStringExtra("kilo")); | 65 | ((TextView) findViewById(R.id.kilo_share)).setText(getIntent().getStringExtra("kilo")); |
| 65 | ((TextView) findViewById(R.id.step_share)).setText(getIntent().getStringExtra("step")); | 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 | ((TextView) findViewById(R.id.speed_share)).setText(getIntent().getStringExtra("speed")); | 68 | ((TextView) findViewById(R.id.speed_share)).setText(getIntent().getStringExtra("speed")); |
| 68 | share_back = findViewById(R.id.share_back); | 69 | share_back = findViewById(R.id.share_back); |
| 69 | share = findViewById(R.id.share); | 70 | share = findViewById(R.id.share); |
| @@ -142,7 +143,6 @@ public class ShareRecordActivity extends AppCompatActivity { | @@ -142,7 +143,6 @@ public class ShareRecordActivity extends AppCompatActivity { | ||
| 142 | 143 | ||
| 143 | @Override | 144 | @Override |
| 144 | public void onGranted() { | 145 | public void onGranted() { |
| 145 | - //判断GPS是否开启 | ||
| 146 | share(); | 146 | share(); |
| 147 | } | 147 | } |
| 148 | }) | 148 | }) |
moudle_pedometer/src/main/res/layout/activity_share_record.xml
| @@ -245,7 +245,7 @@ | @@ -245,7 +245,7 @@ | ||
| 245 | android:layout_height="wrap_content" | 245 | android:layout_height="wrap_content" |
| 246 | android:layout_below="@id/tv_tv" | 246 | android:layout_below="@id/tv_tv" |
| 247 | android:layout_marginTop="7dp" | 247 | android:layout_marginTop="7dp" |
| 248 | - android:hint="点击这里写下你的心情标签心情标签心情标签最多两行" | 248 | + android:hint="点击这里写下你的心情标签最多两行哦" |
| 249 | android:textColor="#999999" | 249 | android:textColor="#999999" |
| 250 | android:background="@null" | 250 | android:background="@null" |
| 251 | android:maxLines="2" | 251 | android:maxLines="2" |