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
ce8d0b5e
Commit
ce8d0b5e
authored
Jun 06, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 0.01展示
parent
1e6a136d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
build.gradle
video/app/build.gradle
+2
-2
VipAdapter.kt
...c/main/java/com/duben/dayplaylet/ui/adapter/VipAdapter.kt
+15
-16
PayYesDialog.kt
...main/java/com/duben/dayplaylet/ui/widgets/PayYesDialog.kt
+3
-3
No files found.
video/app/build.gradle
View file @
ce8d0b5e
...
@@ -10,8 +10,8 @@ android {
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.dayplaylet"
applicationId
"com.duben.dayplaylet"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
60
versionCode
60
1
versionName
"6.0.
0
"
versionName
"6.0.
1
"
flavorDimensions
"default"
flavorDimensions
"default"
// dex突破65535的限制
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/adapter/VipAdapter.kt
View file @
ce8d0b5e
...
@@ -104,28 +104,27 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
...
@@ -104,28 +104,27 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
// }
// }
// }catch (e:Exception){
// }catch (e:Exception){
// e.printStackTrace()
// e.printStackTrace()
holder
.
tvVipItemTitle
.
text
=
vipBean
.
title
holder
.
tvVipItemTitle
.
text
=
vipBean
.
title
if
(
vipBean
.
price
<
1
)
{
if
(
vipBean
.
price
==
0.0
)
{
holder
.
tvVipItemCurMoney
.
text
=
"¥${vipBean.price}
"
holder
.
tvVipItemCurMoney
.
text
=
"¥0.01
"
}
else
{
}
else
{
holder
.
tvVipItemCurMoney
.
text
=
"¥${vipBean.price}"
holder
.
tvVipItemCurMoney
.
text
=
"¥${vipBean.price}"
// holder.tvVipItemCurMoney.text = "¥${String.format("%.0f", vipBean.price)}"
// holder.tvVipItemCurMoney.text = "¥${String.format("%.0f", vipBean.price)}"
}
}
if
(
vipBean
.
oldPrice
>
0
)
{
if
(
vipBean
.
oldPrice
>
0
)
{
holder
.
tvVipItemMoney
.
visibility
=
View
.
VISIBLE
holder
.
tvVipItemMoney
.
visibility
=
View
.
VISIBLE
holder
.
tvVipItemMoney
.
getPaint
().
setFlags
(
Paint
.
STRIKE_THRU_TEXT_FLAG
)
//中间横线(删除线)
holder
.
tvVipItemMoney
.
getPaint
().
setFlags
(
Paint
.
STRIKE_THRU_TEXT_FLAG
)
//中间横线(删除线)
if
(
vipBean
.
oldPrice
<
1
)
{
if
(
vipBean
.
oldPrice
<
1
)
{
holder
.
tvVipItemMoney
.
text
=
"原价:${vipBean.oldPrice}"
holder
.
tvVipItemMoney
.
text
=
"原价:${vipBean.oldPrice}"
}
else
{
holder
.
tvVipItemMoney
.
text
=
"原价:${String.format("
%.
0f
", vipBean.oldPrice)}"
}
}
else
{
}
else
{
holder
.
tvVipItemMoney
.
visibility
=
View
.
INVISIBLE
holder
.
tvVipItemMoney
.
text
=
"原价:${String.format("
%.
0f
", vipBean.oldPrice)}"
}
}
}
else
{
holder
.
tvVipItemMoney
.
visibility
=
View
.
INVISIBLE
}
// }
// }
holder
.
rlVipItemRoot
.
setOnClickListener
{
holder
.
rlVipItemRoot
.
setOnClickListener
{
mOnItemClickListener
.
onItemClick
(
position
)
mOnItemClickListener
.
onItemClick
(
position
)
notifyDataSetChanged
()
notifyDataSetChanged
()
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/widgets/PayYesDialog.kt
View file @
ce8d0b5e
...
@@ -55,10 +55,10 @@ class PayYesDialog(
...
@@ -55,10 +55,10 @@ class PayYesDialog(
iv_dialog_vip_quit
.
setOnClickListener
(
listener
)
iv_dialog_vip_quit
.
setOnClickListener
(
listener
)
tv_dialog_vip_next
.
setOnClickListener
(
listener
)
tv_dialog_vip_next
.
setOnClickListener
(
listener
)
if
(
vipBean
.
trial
==
0
)
{
if
(
vipBean
.
price
==
0.
0
)
{
//0-没签约 无0.01
//0-没签约 无0.01
tv_dialog_vip_count
.
text
=
SpanUtils
()
tv_dialog_vip_count
.
text
=
SpanUtils
()
.
append
(
"
"
+
vipBean
.
price
)
.
append
(
"
0.01"
)
.
setFontSize
(
30
,
true
)
.
setFontSize
(
30
,
true
)
.
append
(
" 元"
)
.
append
(
" 元"
)
.
setFontSize
(
16
,
true
)
.
setFontSize
(
16
,
true
)
...
@@ -66,7 +66,7 @@ class PayYesDialog(
...
@@ -66,7 +66,7 @@ class PayYesDialog(
iv_dialog_vip_top
.
setImageResource
(
R
.
mipmap
.
ic_vip_pay_top2
)
iv_dialog_vip_top
.
setImageResource
(
R
.
mipmap
.
ic_vip_pay_top2
)
}
else
{
}
else
{
tv_dialog_vip_count
.
text
=
SpanUtils
()
tv_dialog_vip_count
.
text
=
SpanUtils
()
.
append
(
""
+
vipBean
.
price
)
.
append
(
""
+
vipBean
.
price
)
.
setFontSize
(
30
,
true
)
.
setFontSize
(
30
,
true
)
.
append
(
" 元"
)
.
append
(
" 元"
)
.
setFontSize
(
16
,
true
)
.
setFontSize
(
16
,
true
)
...
...
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