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
13453738
Commit
13453738
authored
Jul 19, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页优化
parent
571e229f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
93 additions
and
52 deletions
+93
-52
FollowAdapter.kt
...main/java/com/xinfu/helivideo/ui/adapter/FollowAdapter.kt
+1
-1
bg_shape_twoban.xml
video/app/src/main/res/drawable/bg_shape_twoban.xml
+8
-0
banner_image_title.xml
video/app/src/main/res/layout/banner_image_title.xml
+5
-5
fragment_main.xml
video/app/src/main/res/layout/fragment_main.xml
+4
-4
item_follow.xml
video/app/src/main/res/layout/item_follow.xml
+29
-15
item_hot_style.xml
video/app/src/main/res/layout/item_hot_style.xml
+13
-10
item_rv_top.xml
video/app/src/main/res/layout/item_rv_top.xml
+33
-17
No files found.
video/app/src/main/java/com/xinfu/helivideo/ui/adapter/FollowAdapter.kt
View file @
13453738
...
...
@@ -31,7 +31,7 @@ class FollowAdapter(var activity: Activity) :
holder
.
getView
<
TextView
>(
R
.
id
.
info_tv
).
text
=
"观看至第${item.seeIndex}集"
holder
.
getView
<
TextView
>(
R
.
id
.
complete_tv
).
text
=
if
(
item
.
completeStatus
==
0
)
"已完结"
else
"更新中"
GlideUtils
.
loadImageView
NoAnim2
(
context
,
item
.
coverImage
,
holder
.
getView
(
R
.
id
.
image_iv
))
GlideUtils
.
loadImageView
GifForFitCenter
(
context
,
item
.
coverImage
,
holder
.
getView
(
R
.
id
.
image_iv
))
}
// 设置编辑状态
...
...
video/app/src/main/res/drawable/bg_shape_twoban.xml
0 → 100644
View file @
13453738
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#50000000"
/>
<corners
android:bottomLeftRadius=
"5dp"
android:bottomRightRadius=
"5dp"
/>
</shape>
\ No newline at end of file
video/app/src/main/res/layout/banner_image_title.xml
View file @
13453738
...
...
@@ -11,16 +11,16 @@
<TextView
android:id=
"@+id/bannerTitle"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"
wrap_content
"
android:layout_width=
"
match_par
ent"
android:layout_height=
"
32dp
"
android:ellipsize=
"marquee"
android:focusable=
"true"
android:background=
"@drawable/bg_shape_twoban"
android:focusableInTouchMode=
"true"
android:gravity=
"center_vertical"
android:singleLine=
"true"
android:textSize=
"1
8
sp"
android:textSize=
"1
4
sp"
android:textColor=
"#ffffff"
android:layout_marginLeft=
"10dp"
android:layout_marginBottom=
"8dp"
android:paddingLeft=
"10dp"
android:layout_alignParentBottom=
"true"
/>
</RelativeLayout>
\ No newline at end of file
video/app/src/main/res/layout/fragment_main.xml
View file @
13453738
...
...
@@ -180,7 +180,7 @@
android:singleLine=
"true"
android:text=
"我去平行时空我去平行时空"
android:textColor=
"@color/white"
android:textSize=
"1
4
sp"
/>
android:textSize=
"1
5
sp"
/>
<TextView
android:id=
"@+id/tv_main_watching_text1"
...
...
@@ -190,7 +190,7 @@
android:layout_marginBottom=
"2dp"
android:singleLine=
"true"
android:textColor=
"@color/white"
android:textSize=
"1
0
sp"
/>
android:textSize=
"1
2
sp"
/>
<TextView
android:id=
"@+id/tv_main_watching_text2"
...
...
@@ -202,7 +202,7 @@
</LinearLayout>
<RelativeLayout
android:layout_width=
"1
0
0dp"
android:layout_width=
"1
1
0dp"
android:layout_height=
"match_parent"
>
<ImageView
...
...
@@ -215,7 +215,7 @@
<TextView
android:id=
"@+id/tv_main_watching_goto"
android:layout_width=
"1
0
0dp"
android:layout_width=
"1
1
0dp"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
...
...
video/app/src/main/res/layout/item_follow.xml
View file @
13453738
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"wrap_content"
android:layout_height=
"206dp"
android:layout_marginLeft=
"3dp"
android:layout_marginRight=
"3dp"
android:layout_marginBottom=
"10dp"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"6dp"
android:orientation=
"vertical"
android:paddingLeft=
"5dp"
android:paddingRight=
"5dp"
>
<ImageView
android:id=
"@+id/image_iv"
android:layout_width=
"
102dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"150dp"
android:scaleType=
"fitXY"
android:src=
"@mipmap/ic_launcher_main"
...
...
@@ -17,16 +19,28 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/complete_tv"
android:layout_width=
"
wrap_cont
ent"
<RelativeLayout
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"6dp"
android:layout_marginBottom=
"4dp"
android:text=
"已完结"
android:textColor=
"@color/white"
android:background=
"@drawable/bg_shape_twoban"
app:layout_constraintBottom_toBottomOf=
"@id/image_iv"
app:layout_constraintEnd_toEndOf=
"@id/image_iv"
/>
app:layout_constraintEnd_toEndOf=
"@id/image_iv"
>
<TextView
android:id=
"@+id/complete_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"right"
android:paddingLeft=
"6dp"
android:paddingTop=
"2dp"
android:paddingRight=
"8dp"
android:layout_alignParentRight=
"true"
android:paddingBottom=
"2dp"
android:text=
"已完结"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
</RelativeLayout>
<TextView
android:id=
"@+id/title_tv"
...
...
@@ -55,7 +69,7 @@
<FrameLayout
android:id=
"@+id/fm_mask"
android:layout_width=
"
102dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_half_trans2"
app:layout_constraintEnd_toEndOf=
"@id/image_iv"
...
...
video/app/src/main/res/layout/item_hot_style.xml
View file @
13453738
...
...
@@ -7,9 +7,9 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"6dp"
android:orientation=
"vertical"
android:paddingLeft=
"5dp"
android:paddingRight=
"5dp"
android:orientation=
"vertical"
>
android:paddingRight=
"5dp"
>
<FrameLayout
android:layout_width=
"match_parent"
...
...
@@ -18,18 +18,21 @@
<ImageView
android:id=
"@+id/ivVedioItem"
android:layout_width=
"match_parent"
android:minWidth=
"106dp"
android:layout_height=
"150dp"
android:minWidth=
"106dp"
android:scaleType=
"fitXY"
/>
<TextView
android:id=
"@+id/tvVedioItemCount"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom|right"
android:layout_marginRight=
"6dp"
android:layout_marginBottom=
"8dp"
android:gravity=
"center"
android:background=
"@drawable/bg_shape_twoban"
android:gravity=
"right"
android:paddingLeft=
"6dp"
android:paddingTop=
"2dp"
android:paddingRight=
"8dp"
android:paddingBottom=
"2dp"
android:text=
"143.2万"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
...
...
@@ -41,10 +44,10 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:text=
"我去平行时空"
android:singleLine=
"true"
android:text=
"我去平行时空"
android:textColor=
"@color/black"
android:textSize=
"1
4
sp"
/>
android:textSize=
"1
3
sp"
/>
<TextView
android:id=
"@+id/tvVedioItemText"
...
...
@@ -52,6 +55,6 @@
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:textColor=
"@color/gray"
android:textSize=
"1
2
sp"
/>
android:textSize=
"1
1
sp"
/>
</LinearLayout>
\ No newline at end of file
video/app/src/main/res/layout/item_rv_top.xml
View file @
13453738
...
...
@@ -15,9 +15,9 @@
<ImageView
android:id=
"@+id/ivTopItem"
android:scaleType=
"fitXY"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
android:scaleType=
"fitXY"
/>
<TextView
android:id=
"@+id/tvTopItemLable"
...
...
@@ -26,25 +26,42 @@
android:layout_marginLeft=
"10dp"
android:background=
"@mipmap/y4"
android:gravity=
"center"
android:textStyle=
"bold"
android:paddingBottom=
"2dp"
android:text=
"1"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tvTopItemCount"
android:layout_width=
"wrap_content"
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginLeft=
"6dp"
android:layout_marginBottom=
"8dp"
android:background=
"@drawable/bg_shape_twoban"
android:drawableLeft=
"@mipmap/ic_load"
android:drawablePadding=
"4dp"
android:gravity=
"center"
android:text=
"143.2万"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"6dp"
android:src=
"@mipmap/ic_load"
></ImageView>
<TextView
android:id=
"@+id/tvTopItemCount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:paddingLeft=
"6dp"
android:paddingTop=
"2dp"
android:paddingRight=
"8dp"
android:paddingBottom=
"2dp"
android:text=
"143.2万"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
</LinearLayout>
</FrameLayout>
...
...
@@ -53,11 +70,10 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:text=
"我去平行时空"
android:textStyle=
"bold"
android:singleLine=
"true"
android:text=
"我去平行时空"
android:textColor=
"@color/black"
android:textSize=
"1
4
sp"
/>
android:textSize=
"1
3
sp"
/>
<TextView
android:id=
"@+id/tvTopItemText"
...
...
@@ -65,6 +81,6 @@
android:layout_height=
"wrap_content"
android:singleLine=
"true"
android:textColor=
"@color/gray"
android:textSize=
"1
2
sp"
/>
android:textSize=
"1
1
sp"
/>
</LinearLayout>
\ No newline at end of file
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