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
317ac355
Commit
317ac355
authored
Nov 21, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pro
parent
428152f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
NewHotStyleAdapter.kt
...va/com/duben/xixiplaylet/ui/adapter/NewHotStyleAdapter.kt
+2
-2
item_hot_style.xml
video/app/src/main/res/layout/item_hot_style.xml
+4
-1
No files found.
video/app/src/main/java/com/duben/xixiplaylet/ui/adapter/NewHotStyleAdapter.kt
View file @
317ac355
...
...
@@ -50,7 +50,7 @@ class NewHotStyleAdapter :
holder
.
getView
<
View
>(
R
.
id
.
item1
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
View
>(
R
.
id
.
item1
)
.
findViewById
<
TextView
>(
R
.
id
.
tvVedioItemCount
)
.
text
=
"
${if (it[0].completeStatus == 0) "
已完结
" else "
更新至$
{
it
[
0
].
vedioTotal
}
集
"}
"
.
text
=
"
全${it[0].vedioTotal}集
"
holder
.
getView
<
View
>(
R
.
id
.
item1
)
.
findViewById
<
TextView
>(
R
.
id
.
tvVedioItemTitle
)
.
text
=
"${it[0].title}"
...
...
@@ -78,7 +78,7 @@ class NewHotStyleAdapter :
holder
.
getView
<
View
>(
R
.
id
.
item2
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
View
>(
R
.
id
.
item2
)
.
findViewById
<
TextView
>(
R
.
id
.
tvVedioItemCount
)
.
text
=
"
${if (it[1].completeStatus == 0) "
已完结
" else "
更新至$
{
it
[
1
].
vedioTotal
}
集
"}
"
.
text
=
"
全${it[1].vedioTotal}集
"
holder
.
getView
<
View
>(
R
.
id
.
item2
)
.
findViewById
<
TextView
>(
R
.
id
.
tvVedioItemTitle
)
.
text
=
"${it[1].title}"
...
...
video/app/src/main/res/layout/item_hot_style.xml
View file @
317ac355
...
...
@@ -3,6 +3,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:background=
"@drawable/shape_banner_write"
android:paddingLeft=
"5dp"
android:paddingRight=
"5dp"
>
...
...
@@ -13,7 +14,7 @@
<ImageView
android:id=
"@+id/ivVedioItem"
android:layout_width=
"match_parent"
android:layout_height=
"1
5
0dp"
android:layout_height=
"1
8
0dp"
android:minWidth=
"106dp"
android:scaleType=
"fitXY"
/>
...
...
@@ -30,6 +31,7 @@
android:drawableLeft=
"@mipmap/ic_index_play"
android:paddingLeft=
"6dp"
android:paddingTop=
"2dp"
android:gravity=
"center"
android:paddingRight=
"8dp"
android:paddingBottom=
"2dp"
android:text=
"143.2万"
...
...
@@ -60,6 +62,7 @@
android:layout_marginTop=
"4dp"
android:singleLine=
"true"
android:text=
"我去平行时空"
android:layout_marginBottom=
"6dp"
android:textColor=
"@color/black"
android:textSize=
"13sp"
/>
...
...
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