Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
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_vediosocial
Commits
e9849e2a
Commit
e9849e2a
authored
Feb 19, 2025
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
223c768b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
SquareAdapter.kt
...n/java/com/duben/loveplayletd/ui/adapter/SquareAdapter.kt
+8
-11
SquareListFragment.kt
.../com/duben/loveplayletd/ui/fragment/SquareListFragment.kt
+3
-3
fragment_square.xml
video/app/src/main/res/layout/fragment_square.xml
+1
-1
No files found.
video/app/src/main/java/com/duben/loveplayletd/ui/adapter/SquareAdapter.kt
View file @
e9849e2a
...
...
@@ -94,7 +94,6 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
holder
.
getView
<
LinearLayout
>(
R
.
id
.
ll_recommend_root
)
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_black
)
if
(
item
.
headerUrl
!=
null
&&!
TextUtils
.
isEmpty
(
item
.
headerUrl
)){
loadSquareImageView
(
context
,
item
.
headerUrl
,
...
...
@@ -102,8 +101,6 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
isBlur
,
R
.
mipmap
.
ic_default_avatar_female
)
}
holder
.
getView
<
RelativeLayout
>(
R
.
id
.
rl_album
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_status
).
visibility
=
View
.
VISIBLE
...
...
@@ -219,7 +216,7 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
fun
loadSquareImageView
(
ctx
:
Context
,
path
:
String
,
path
:
String
?
,
iv
:
ImageView
,
isBlur
:
Boolean
,
defaultImage
:
Int
=
R
.
mipmap
.
ic_default_avatar_male
...
...
video/app/src/main/java/com/duben/loveplayletd/ui/fragment/SquareListFragment.kt
View file @
e9849e2a
...
...
@@ -66,9 +66,9 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
override
fun
onFragmentResume
()
{
super
.
onFragmentResume
()
if
(
::
squareAdapter
.
isInitialized
&&
!
squareAdapter
.
isBlur
()
&&
UserManager
.
getInstance
().
vipFlag
)
{
squareAdapter
.
setIsBlur
(
true
)
}
//
if (::squareAdapter.isInitialized && !squareAdapter.isBlur() && UserManager.getInstance().vipFlag) {
//
squareAdapter.setIsBlur(true)
//
}
}
override
fun
onFragmentFirstVisible
()
{
...
...
video/app/src/main/res/layout/fragment_square.xml
View file @
e9849e2a
...
...
@@ -16,7 +16,7 @@
android:layout_height=
"wrap_content"
android:background=
"@android:color/transparent"
android:theme=
"@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_behavior=
".ui.widgets.AppBarLayoutBehavior"
>
>
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width=
"match_parent"
...
...
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