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
32253ee1
Commit
32253ee1
authored
Nov 21, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
c2d821b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
21 deletions
+11
-21
LoanService.java
.../app/src/main/java/com/duben/heliapp/net/LoanService.java
+1
-1
VipAdapter.kt
.../src/main/java/com/duben/heliapp/ui/adapter/VipAdapter.kt
+4
-14
item_rv_vip.xml
video/app/src/main/res/layout/item_rv_vip.xml
+6
-6
No files found.
video/app/src/main/java/com/duben/heliapp/net/LoanService.java
View file @
32253ee1
...
...
@@ -90,7 +90,7 @@ public interface LoanService {
/**
* 查询vip产品
*/
@POST
(
"v
ip/v
edioV1/getVipProducts"
)
@POST
(
"vedioV1/getVipProducts"
)
Observable
<
BaseResponse
<
VipBean
>>
getVipProducts
(
@Body
Map
<
String
,
Object
>
vo
);
/**
...
...
video/app/src/main/java/com/duben/heliapp/ui/adapter/VipAdapter.kt
View file @
32253ee1
...
...
@@ -63,8 +63,8 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
holder
.
tvVipItemLable
.
visibility
=
View
.
VISIBLE
holder
.
tvVipItemLable
.
text
=
vipBean
.
topTitle
}
holder
.
tvVipItem
Title
.
text
=
vipBean
.
title
holder
.
tvVipItem
CurMoney
.
text
=
vipBean
.
price
.
toString
()
+
"元"
holder
.
tvVipItem
CurMoney
.
text
=
vipBean
.
title
holder
.
tvVipItem
Title
.
text
=
vipBean
.
price
.
toString
()
+
"元"
if
(
TextUtils
.
isEmpty
(
vipBean
.
remarks
))
{
holder
.
tvVipItemMoney
.
visibility
=
View
.
GONE
}
else
{
...
...
@@ -80,25 +80,15 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
if
(
getPosition
()
==
position
)
{
//当前选中
holder
.
rlVipItemRoot
.
setBackgroundResource
(
R
.
drawable
.
shape_vip_adapter
)
holder
.
tvVipItemCurMoney
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_FD7E0E
)
)
GlideUtils
.
loadRoundImageViewGif
(
context
,
R
.
drawable
.
ic_loading
,
holder
.
ivVipItemPoint
)
holder
.
ivVipItemPoint
.
visibility
=
View
.
VISIBLE
}
else
{
holder
.
rlVipItemRoot
.
setBackgroundResource
(
R
.
drawable
.
shape_vip_adapter_none
)
holder
.
tvVipItemCurMoney
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
white
)
)
holder
.
ivVipItemPoint
.
visibility
=
View
.
GONE
}
holder
.
itemView
.
setTag
(
position
)
...
...
video/app/src/main/res/layout/item_rv_vip.xml
View file @
32253ee1
...
...
@@ -11,17 +11,17 @@
android:layout_marginBottom=
"5dp"
>
<RelativeLayout
android:layout_marginTop=
"6dp"
android:id=
"@+id/rlVipItemRoot"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"8dp"
android:background=
"@drawable/shape_vip_adapter_none"
>
<LinearLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"
match_par
ent"
android:layout_centerInParent=
"true"
android:gravity=
"center
_horizontal
"
android:gravity=
"center"
android:orientation=
"vertical"
>
<TextView
...
...
@@ -36,8 +36,8 @@
android:id=
"@+id/tvVipItemCurMoney"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
6
dp"
android:layout_marginBottom=
"
4
dp"
android:layout_marginTop=
"
10
dp"
android:layout_marginBottom=
"
8
dp"
android:text=
"$78"
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