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
cb62ca79
Commit
cb62ca79
authored
Sep 22, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
ae639423
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
20 deletions
+29
-20
VipActivity.kt
...in/java/com/duben/miniplaylet/ui/activitys/VipActivity.kt
+3
-2
PayYesDialog.kt
...ain/java/com/duben/miniplaylet/ui/widgets/PayYesDialog.kt
+0
-10
VipPayCancelDialog.kt
...va/com/duben/miniplaylet/ui/widgets/VipPayCancelDialog.kt
+3
-1
dialog_vip_pay_cancel.xml
video/app/src/main/res/layout/dialog_vip_pay_cancel.xml
+23
-7
bg_vip_cancel.png
video/app/src/main/res/mipmap-xhdpi/bg_vip_cancel.png
+0
-0
No files found.
video/app/src/main/java/com/duben/miniplaylet/ui/activitys/VipActivity.kt
View file @
cb62ca79
...
...
@@ -695,12 +695,13 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
}
private
fun
showPayCancelDialog
()
{
VipPayCancelDialog
(
this
,
object
:
DialogListener
()
{
val
vipBean
=
vipList
!!
[
0
]
VipPayCancelDialog
(
this
,
vipBean
.
price
,
object
:
DialogListener
()
{
override
fun
onClick
(
dialog
:
Dialog
?,
v
:
View
?)
{
super
.
onClick
(
dialog
,
v
)
dialog
?.
dismiss
()
val
vipBean
=
vipList
!!
[
0
]
vipPresenter
.
getVipPayParams
(
"ALIPAY"
,
vipBean
.
pid
,
isAliPayInstalled
()
...
...
video/app/src/main/java/com/duben/miniplaylet/ui/widgets/PayYesDialog.kt
View file @
cb62ca79
...
...
@@ -55,7 +55,6 @@ class PayYesDialog(
iv_dialog_vip_quit
.
setOnClickListener
(
listener
)
tv_dialog_vip_next
.
setOnClickListener
(
listener
)
if
(
vipBean
.
trial
==
0
)
{
//0-没签约 无0.01
tv_dialog_vip_count
.
text
=
SpanUtils
()
.
append
(
""
+
vipBean
.
price
)
...
...
@@ -64,14 +63,5 @@ class PayYesDialog(
.
setFontSize
(
16
,
true
)
.
create
()
iv_dialog_vip_top
.
setImageResource
(
R
.
mipmap
.
ic_vip_pay_top2
)
}
else
{
tv_dialog_vip_count
.
text
=
SpanUtils
()
.
append
(
"0.01"
)
.
setFontSize
(
30
,
true
)
.
append
(
" 元"
)
.
setFontSize
(
16
,
true
)
.
create
()
iv_dialog_vip_top
.
setImageResource
(
R
.
mipmap
.
ic_vip_pay_top1
)
}
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/miniplaylet/ui/widgets/VipPayCancelDialog.kt
View file @
cb62ca79
...
...
@@ -9,9 +9,11 @@ import android.view.WindowManager
import
com.duben.miniplaylet.R
import
com.duben.miniplaylet.common.AppConfig
import
com.duben.miniplaylet.utils.MilliCountDownTimer
import
kotlinx.android.synthetic.main.dialog_vip_pay_cancel.*
class
VipPayCancelDialog
(
val
activity
:
Activity
,
val
cash
:
Double
,
private
val
listener
:
DialogListener
)
:
Dialog
(
activity
,
R
.
style
.
dialog
)
{
...
...
@@ -39,7 +41,7 @@ class VipPayCancelDialog(
findViewById
<
View
>(
R
.
id
.
iv_back
).
setOnClickListener
{
dismiss
()
}
tv_cancel_cash
.
text
=
"${cash}元"
listener
.
setDialog
(
this
)
findViewById
<
View
>(
R
.
id
.
btn
).
setOnClickListener
(
listener
)
...
...
video/app/src/main/res/layout/dialog_vip_pay_cancel.xml
View file @
cb62ca79
...
...
@@ -19,16 +19,32 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/imageView2"
android:layout_width=
"match_parent"
android:layout_height=
"360dp"
android:layout_marginTop=
"30dp"
android:src=
"@mipmap/bg_vip_cancel"
<FrameLayout
android:layout_width=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
android:layout_height=
"wrap_content"
>
<ImageView
android:id=
"@+id/imageView2"
android:layout_width=
"match_parent"
android:layout_height=
"360dp"
android:layout_marginTop=
"30dp"
android:src=
"@mipmap/bg_vip_cancel"
/>
<TextView
android:id=
"@+id/tv_cancel_cash"
android:layout_width=
"wrap_content"
android:textSize=
"30dp"
android:text=
"0.01元"
android:textStyle=
"bold"
android:layout_marginLeft=
"110dp"
android:layout_marginTop=
"193dp"
android:textColor=
"@color/tv_message_recente_money"
android:layout_height=
"wrap_content"
></TextView>
</FrameLayout>
<Button
android:id=
"@+id/btn"
...
...
video/app/src/main/res/mipmap-xhdpi/bg_vip_cancel.png
View replaced file @
ae639423
View file @
cb62ca79
169 KB
|
W:
|
H:
165 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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