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
089647d1
Commit
089647d1
authored
Nov 21, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
199e898c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+1
-1
AlipayTimeActivity.kt
...com/duben/loveplayletu/ui/activitys/AlipayTimeActivity.kt
+8
-8
activity_alipaytime.xml
video/app/src/main/res/layout/activity_alipaytime.xml
+3
-1
No files found.
video/app/src/main/AndroidManifest.xml
View file @
089647d1
...
...
@@ -189,7 +189,7 @@
android:screenOrientation=
"portrait"
/>
<activity
android:name=
".ui.activit
ie
s.AlipayTimeActivity"
android:name=
".ui.activit
y
s.AlipayTimeActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
android:theme=
"@style/TransparentTheme"
/>
...
...
video/app/src/main/java/com/duben/loveplayletu/ui/activitys/AlipayTimeActivity.kt
View file @
089647d1
...
...
@@ -23,17 +23,17 @@ class AlipayTimeActivity : BaseActivity(), View.OnClickListener {
override
fun
toggleOverridePendingTransition
()
=
true
override
fun
getOverridePendingTransitionMode
()
=
TransitionMode
.
SCAL
E
override
fun
getOverridePendingTransitionMode
()
=
TransitionMode
.
FAD
E
override
fun
initViewsAndEvents
()
{
countDownTimer
=
SimpleCountDownTimer
(
5
000
,
tv_alipaytime
).
setOnFinishListener
{
countDownTimer
=
SimpleCountDownTimer
(
30
*
60
*
1
000
,
tv_alipaytime
).
setOnFinishListener
{
showToast
(
"11111"
)
}.
start
()
as
SimpleCountDownTimer
?
}
override
fun
finish
()
{
super
.
finish
()
overridePendingTransition
(
0
,
R
.
anim
.
scal
e_out
)
overridePendingTransition
(
0
,
R
.
anim
.
fad
e_out
)
}
override
fun
onDestroy
()
{
...
...
@@ -41,11 +41,11 @@ class AlipayTimeActivity : BaseActivity(), View.OnClickListener {
countDownTimer
?.
cancel
()
}
override
fun
onKeyDown
(
keyCode
:
Int
,
event
:
KeyEvent
):
Boolean
{
return
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
true
}
else
super
.
onKeyDown
(
keyCode
,
event
)
}
//
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
//
return if (keyCode == KeyEvent.KEYCODE_BACK) {
//
true
//
} else super.onKeyDown(keyCode, event)
//
}
override
fun
onClick
(
v
:
View
)
{
if
(
AntiShake
.
check
(
v
.
id
))
return
...
...
video/app/src/main/res/layout/activity_alipaytime.xml
View file @
089647d1
...
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/
full
_transparent"
>
android:background=
"@color/
half
_transparent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -18,6 +18,8 @@
<TextView
android:id=
"@+id/tv_alipaytime"
android:textSize=
"40sp"
android:layout_gravity=
"center"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/red"
></TextView>
...
...
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