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
e8663f2d
Commit
e8663f2d
authored
Nov 26, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
e3f085aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
26 deletions
+18
-26
HomePresenter.kt
...va/com/duben/loveplayletu/mvp/presenters/HomePresenter.kt
+2
-2
AlipayTimeActivity.kt
...com/duben/loveplayletu/ui/activitys/AlipayTimeActivity.kt
+1
-1
activity_alipaytime.xml
video/app/src/main/res/layout/activity_alipaytime.xml
+14
-23
colors.xml
video/app/src/main/res/values/colors.xml
+1
-0
No files found.
video/app/src/main/java/com/duben/loveplayletu/mvp/presenters/HomePresenter.kt
View file @
e8663f2d
...
@@ -128,8 +128,8 @@ class HomePresenter : BasePresenter<HomeView>() {
...
@@ -128,8 +128,8 @@ class HomePresenter : BasePresenter<HomeView>() {
when
(
code
)
{
when
(
code
)
{
200
->
{
200
->
{
try
{
try
{
//
view.signAfterSecondsSuc(baseResponse.data.get("time").asInt)
view
.
signAfterSecondsSuc
(
baseResponse
.
data
.
get
(
"time"
).
asInt
)
view
.
signAfterSecondsSuc
(
1000
)
//
view.signAfterSecondsSuc(1000)
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
e
.
printStackTrace
()
}
}
...
...
video/app/src/main/java/com/duben/loveplayletu/ui/activitys/AlipayTimeActivity.kt
View file @
e8663f2d
...
@@ -46,7 +46,7 @@ class AlipayTimeActivity : BaseActivity(), View.OnClickListener {
...
@@ -46,7 +46,7 @@ class AlipayTimeActivity : BaseActivity(), View.OnClickListener {
ivBack
.
setOnClickListener
(
this
)
ivBack
.
setOnClickListener
(
this
)
countDownTimer
=
SimpleCountDownTimer
(((
alipaytime
)
*
1000
).
toLong
(),
tv_alipaytime
).
setOnFinishListener
{
countDownTimer
=
SimpleCountDownTimer
(((
alipaytime
)
*
1000
).
toLong
(),
tv_alipaytime
).
setOnFinishListener
{
//
finish()
finish
()
}.
start
()
as
SimpleCountDownTimer
?
}.
start
()
as
SimpleCountDownTimer
?
}
}
...
...
video/app/src/main/res/layout/activity_alipaytime.xml
View file @
e8663f2d
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/half_transparent"
>
android:gravity=
"center_vertical"
android:background=
"@color/half_transparent2"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/ivBack"
android:id=
"@+id/ivBack"
android:layout_width=
"
3
0dp"
android:layout_width=
"
2
0dp"
android:layout_height=
"
3
0dp"
android:layout_height=
"
2
0dp"
android:layout_gravity=
"right"
android:layout_gravity=
"right"
android:layout_marginTop=
"50dp"
android:layout_marginRight=
"30dp"
android:layout_marginRight=
"30dp"
android:src=
"@mipmap/ic_quit_white"
></ImageView>
android:src=
"@mipmap/ic_quit_white"
></ImageView>
...
@@ -24,29 +22,24 @@
...
@@ -24,29 +22,24 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"
2
0dp"
android:layout_marginTop=
"
1
0dp"
android:src=
"@mipmap/bg_alipay_top"
></ImageView>
android:src=
"@mipmap/bg_alipay_top"
></ImageView>
<com.airbnb.lottie.LottieAnimationView
<com.airbnb.lottie.LottieAnimationView
android:layout_width=
"3
25
dp"
android:layout_width=
"3
60
dp"
android:layout_height=
"
325
dp"
android:layout_height=
"
284
dp"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"30dp"
app:lottie_autoPlay=
"true"
app:lottie_autoPlay=
"true"
app:lottie_fileName=
"alipay_act.json"
app:lottie_fileName=
"alipay_act.json"
app:lottie_loop=
"true"
/>
app:lottie_loop=
"true"
/>
<TextView
<TextView
android:id=
"@+id/tv_alipaytime"
android:id=
"@+id/tv_alipaytime"
android:layout_width=
"
wrap_content
"
android:layout_width=
"
130dp
"
android:layout_height=
"
wrap_content
"
android:layout_height=
"
42dp
"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:layout_marginTop=
"20dp"
android:background=
"@drawable/shape_bg_write"
android:background=
"@drawable/shape_bg_write"
android:paddingLeft=
"10dp"
android:gravity=
"center"
android:paddingTop=
"4dp"
android:paddingRight=
"10dp"
android:paddingBottom=
"4dp"
android:textColor=
"@color/red"
android:textColor=
"@color/red"
android:textSize=
"30sp"
android:textSize=
"30sp"
android:textStyle=
"bold"
></TextView>
android:textStyle=
"bold"
></TextView>
...
@@ -57,9 +50,7 @@
...
@@ -57,9 +50,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:textSize=
"1
4
sp"
android:textSize=
"1
5
sp"
android:textColor=
"@color/graya"
android:textColor=
"@color/graya"
android:text=
"请耐心等待~\n注意:若取消开通,默认不参与返现活动"
></TextView>
android:text=
"请耐心等待~\n注意:若取消开通,默认不参与返现活动"
></TextView>
</LinearLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
video/app/src/main/res/values/colors.xml
View file @
e8663f2d
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<color
name=
"color_FF7563"
>
#FF7563
</color>
<color
name=
"color_FF7563"
>
#FF7563
</color>
<color
name=
"full_transparent"
>
#00000000
</color>
<color
name=
"full_transparent"
>
#00000000
</color>
<color
name=
"half_transparent"
>
#80000000
</color>
<color
name=
"half_transparent"
>
#80000000
</color>
<color
name=
"half_transparent2"
>
#99000000
</color>
<color
name=
"title_bg"
>
#2B3238
</color>
<color
name=
"title_bg"
>
#2B3238
</color>
<color
name=
"loading_bg"
>
#600c224b
</color>
<color
name=
"loading_bg"
>
#600c224b
</color>
<color
name=
"btn_enabled"
>
#F1F2F8
</color>
<color
name=
"btn_enabled"
>
#F1F2F8
</color>
...
...
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