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
f94544fd
Commit
f94544fd
authored
Jul 19, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4ee9c4d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
NewHotStyleAdapter.kt
...java/com/xinfu/helivideo/ui/adapter/NewHotStyleAdapter.kt
+19
-14
MovieFragment.kt
...ain/java/com/xinfu/helivideo/ui/fragment/MovieFragment.kt
+1
-6
No files found.
video/app/src/main/java/com/xinfu/helivideo/ui/adapter/NewHotStyleAdapter.kt
View file @
f94544fd
...
...
@@ -12,20 +12,25 @@ class NewHotStyleAdapter : BaseQuickAdapter<VedioBean, BaseViewHolder>(R.layout.
R
.
id
.
tvVedioItemCount
,
"${if (item.completeStatus == 0) "
已完结
" else "
更新至$
{
item
.
vedioTotal
}
集
"}"
)
holder
.
setText
(
R
.
id
.
tvVedioItemTitle
,
"${item.title}"
)
holder
.
setText
(
R
.
id
.
tvVedioItemText
,
"${item.vedioDesc}"
)
GlideUtils
.
loadImageViewGifForFitCenter
(
context
,
item
.
coverImage
,
holder
.
getView
(
R
.
id
.
ivVedioItem
)
)
if
(
item
.
title
!=
null
)
{
holder
.
setText
(
R
.
id
.
tvVedioItemTitle
,
"${item.title}"
)
}
if
(
item
.
vedioDesc
!=
null
)
{
holder
.
setText
(
R
.
id
.
tvVedioItemText
,
"${item.vedioDesc}"
)
}
if
(
item
.
coverImage
!=
null
)
{
GlideUtils
.
loadImageViewGifForFitCenter
(
context
,
item
.
coverImage
,
holder
.
getView
(
R
.
id
.
ivVedioItem
)
)
}
}
}
\ No newline at end of file
video/app/src/main/java/com/xinfu/helivideo/ui/fragment/MovieFragment.kt
View file @
f94544fd
...
...
@@ -96,12 +96,7 @@ class MovieFragment : LazyLoadBaseFragment(), PicContentView, OnLoadMoreListener
}
else
{
srlMainPage
.
finishLoadMore
()
}
try
{
hotStyleAdapter
.
notifyItemChanged
(
data
.
list
.
size
+
1
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
hotStyleAdapter
.
notifyDataSetChanged
()
}
hotStyleAdapter
.
notifyItemChanged
(
data
.
list
.
size
+
1
)
}
}
}
...
...
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