Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
e9c5156c
Commit
e9c5156c
authored
Nov 22, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
089647d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SimpleCountDownTimer.java
...m/duben/loveplayletu/ui/widgets/SimpleCountDownTimer.java
+2
-2
No files found.
video/app/src/main/java/com/duben/loveplayletu/ui/widgets/SimpleCountDownTimer.java
View file @
e9c5156c
...
@@ -68,12 +68,12 @@ public class SimpleCountDownTimer extends CountDownTimer {
...
@@ -68,12 +68,12 @@ public class SimpleCountDownTimer extends CountDownTimer {
long
lMin
=
(
millisUntilFinished
-
lHr
*
hr
)
/
min
;
long
lMin
=
(
millisUntilFinished
-
lHr
*
hr
)
/
min
;
long
lSec
=
(
millisUntilFinished
-
lHr
*
hr
-
lMin
*
min
)
/
sec
;
long
lSec
=
(
millisUntilFinished
-
lHr
*
hr
-
lMin
*
min
)
/
sec
;
long
lMs
=
millisUntilFinished
-
lHr
*
hr
-
lMin
*
min
-
lSec
*
sec
;
long
lMs
=
millisUntilFinished
-
lHr
*
hr
-
lMin
*
min
-
lSec
*
sec
;
String
strLHr
=
getTime
(
lHr
);
String
strLMin
=
getTime
(
lMin
);
String
strLMin
=
getTime
(
lMin
);
String
strLSec
=
getTime
(
lSec
);
String
strLSec
=
getTime
(
lSec
);
String
strLMs
=
getMs
(
lMs
);
String
strLMs
=
getMs
(
lMs
);
// 依次拼接时间 时:分:秒:毫秒
// 依次拼接时间 时:分:秒:毫秒
tvDisplay
.
setText
(
strLHr
+
":"
+
strLMin
+
":"
+
strLSec
+
":"
+
strLMs
);
// tvDisplay.setText(strLHr + ":" + strLMin + ":" + strLSec + ":" + strLMs);
tvDisplay
.
setText
(
strLMin
+
":"
+
strLSec
+
":"
+
strLMs
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment