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
4ae4c218
Commit
4ae4c218
authored
Feb 20, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
eda5d071
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
67 deletions
+95
-67
AppConfig.java
...p/src/main/java/com/duben/shortplay/common/AppConfig.java
+1
-0
Constant.kt
.../app/src/main/java/com/duben/shortplay/common/Constant.kt
+1
-0
VipActivity.kt
...main/java/com/duben/shortplay/ui/activitys/VipActivity.kt
+78
-64
VipPayCancelDialog.kt
...java/com/duben/shortplay/ui/widgets/VipPayCancelDialog.kt
+1
-0
dialog_vip_pay_cancel.xml
video/app/src/main/res/layout/dialog_vip_pay_cancel.xml
+14
-3
No files found.
video/app/src/main/java/com/duben/shortplay/common/AppConfig.java
View file @
4ae4c218
...
@@ -17,6 +17,7 @@ public class AppConfig {
...
@@ -17,6 +17,7 @@ public class AppConfig {
*/
*/
public
static
int
fragmentClickFlag
=
0
;
public
static
int
fragmentClickFlag
=
0
;
public
static
int
vedioId
=
0
;
public
static
int
vedioId
=
0
;
public
static
int
alipayCancelCount
=
0
;
// 退出登录首页刷新
// 退出登录首页刷新
public
static
boolean
exitLoginMainRefresh
=
false
;
public
static
boolean
exitLoginMainRefresh
=
false
;
...
...
video/app/src/main/java/com/duben/shortplay/common/Constant.kt
View file @
4ae4c218
...
@@ -29,6 +29,7 @@ object Constant {
...
@@ -29,6 +29,7 @@ object Constant {
const
val
MAIN_TWO_RECOMMEND
=
"MAIN_TWO_RECOMMEND"
const
val
MAIN_TWO_RECOMMEND
=
"MAIN_TWO_RECOMMEND"
const
val
VEDIO_AD_COUNT
=
"VEDIO_AD_COUNT"
const
val
VEDIO_AD_COUNT
=
"VEDIO_AD_COUNT"
const
val
VEDIO_MAIN_COUNT
=
"VEDIO_MAIN_COUNT"
const
val
VEDIO_MAIN_COUNT
=
"VEDIO_MAIN_COUNT"
const
val
ALIPAY_COUNT
=
"ALIPAY_COUNT"
const
val
CARRIERTYPE_CSJ_VEDIO
=
"1"
const
val
CARRIERTYPE_CSJ_VEDIO
=
"1"
...
...
video/app/src/main/java/com/duben/shortplay/ui/activitys/VipActivity.kt
View file @
4ae4c218
This diff is collapsed.
Click to expand it.
video/app/src/main/java/com/duben/shortplay/ui/widgets/VipPayCancelDialog.kt
View file @
4ae4c218
...
@@ -42,6 +42,7 @@ class VipPayCancelDialog(
...
@@ -42,6 +42,7 @@ class VipPayCancelDialog(
dismiss
()
dismiss
()
}
}
tv_cancel_cash
.
text
=
"${cash}元"
tv_cancel_cash
.
text
=
"${cash}元"
tv_cancel_coupon
.
text
=
"赠送${cash}元体验券"
listener
.
setDialog
(
this
)
listener
.
setDialog
(
this
)
findViewById
<
View
>(
R
.
id
.
btn
).
setOnClickListener
(
listener
)
findViewById
<
View
>(
R
.
id
.
btn
).
setOnClickListener
(
listener
)
...
...
video/app/src/main/res/layout/dialog_vip_pay_cancel.xml
View file @
4ae4c218
...
@@ -43,6 +43,15 @@
...
@@ -43,6 +43,15 @@
android:layout_marginTop=
"193dp"
android:layout_marginTop=
"193dp"
android:textColor=
"@color/tv_message_recente_money"
android:textColor=
"@color/tv_message_recente_money"
android:layout_height=
"wrap_content"
></TextView>
android:layout_height=
"wrap_content"
></TextView>
<TextView
android:id=
"@+id/tv_count_down"
android:layout_width=
"wrap_content"
android:textSize=
"18dp"
android:text=
"-"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"272dp"
android:textColor=
"@color/gray"
android:layout_height=
"wrap_content"
></TextView>
</FrameLayout>
</FrameLayout>
...
@@ -57,12 +66,14 @@
...
@@ -57,12 +66,14 @@
app:layout_constraintTop_toTopOf=
"@+id/guideline3"
/>
app:layout_constraintTop_toTopOf=
"@+id/guideline3"
/>
<TextView
<TextView
android:id=
"@+id/tv_c
ount_dow
n"
android:id=
"@+id/tv_c
ancel_coupo
n"
android:layout_width=
"160dp"
android:layout_width=
"160dp"
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:background=
"@drawable/shape_linear_yellow"
android:background=
"@drawable/shape_linear_yellow"
android:gravity=
"center"
android:gravity=
"center"
android:textColor=
"@color/color_FD7E0E"
android:text=
"赠送-元体验券"
android:textSize=
"18sp"
android:textColor=
"@color/red"
app:layout_constraintBottom_toTopOf=
"@id/guideline2"
app:layout_constraintBottom_toTopOf=
"@id/guideline2"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -80,7 +91,7 @@
...
@@ -80,7 +91,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
app:layout_constraintGuide_begin=
"3
1
4dp"
/>
app:layout_constraintGuide_begin=
"3
3
4dp"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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