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
b4569a21
Commit
b4569a21
authored
Apr 03, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
ef320078
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
VipAdapter.kt
...ain/java/com/duben/miaoquplaylet/ui/adapter/VipAdapter.kt
+7
-7
No files found.
video/app/src/main/java/com/duben/miaoquplaylet/ui/adapter/VipAdapter.kt
View file @
b4569a21
...
@@ -56,17 +56,17 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
...
@@ -56,17 +56,17 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
override
fun
onBindViewHolder
(
holder
:
ViewHolder
,
position
:
Int
)
{
val
vipBean
=
vipList
[
position
]
val
vipBean
=
vipList
[
position
]
if
(
vipBean
.
trial
!=
0
)
{
//
if (vipBean.trial != 0) {
holder
.
tvVipItemLable
.
setPadding
(
0
,
0
,
0
,
0
)
//
holder.tvVipItemLable.setPadding(0, 0, 0, 0)
holder
.
tvVipItemLable
.
text
=
"限时特惠"
//
holder.tvVipItemLable.text = "限时特惠"
holder
.
tvVipItemLable
.
gravity
=
Gravity
.
CENTER
//
holder.tvVipItemLable.gravity = Gravity.CENTER
holder
.
tvVipItemLable
.
setBackgroundResource
(
R
.
mipmap
.
ic_vip_lable
)
//
holder.tvVipItemLable.setBackgroundResource(R.mipmap.ic_vip_lable)
}
else
{
//
} else {
holder
.
tvVipItemLable
.
setPadding
(
0
,
0
,
0
,
0
)
holder
.
tvVipItemLable
.
setPadding
(
0
,
0
,
0
,
0
)
holder
.
tvVipItemLable
.
text
=
"热门"
holder
.
tvVipItemLable
.
text
=
"热门"
holder
.
tvVipItemLable
.
gravity
=
Gravity
.
CENTER
holder
.
tvVipItemLable
.
gravity
=
Gravity
.
CENTER
holder
.
tvVipItemLable
.
setBackgroundResource
(
R
.
mipmap
.
ic_vip_lable
)
holder
.
tvVipItemLable
.
setBackgroundResource
(
R
.
mipmap
.
ic_vip_lable
)
}
//
}
// try {
// try {
...
...
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