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
0f22f0b6
Commit
0f22f0b6
authored
Feb 06, 2025
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复详情页列表滑动冲突
parent
5a9bc62f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
47 deletions
+2
-47
UserProfileActivity.kt
...om/duben/loveplayletd/ui/activitys/UserProfileActivity.kt
+1
-0
CustomRecyclerView.java
...com/duben/loveplayletd/ui/widgets/CustomRecyclerView.java
+0
-46
activity_user_profile.xml
video/app/src/main/res/layout/activity_user_profile.xml
+1
-1
No files found.
video/app/src/main/java/com/duben/loveplayletd/ui/activitys/UserProfileActivity.kt
View file @
0f22f0b6
...
@@ -402,6 +402,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
...
@@ -402,6 +402,7 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
layoutManager
.
orientation
=
LinearLayoutManager
.
HORIZONTAL
layoutManager
.
orientation
=
LinearLayoutManager
.
HORIZONTAL
rcy_profile_album
.
layoutManager
=
layoutManager
rcy_profile_album
.
layoutManager
=
layoutManager
rcy_profile_album
.
adapter
=
userProfileAlbumAdapter
rcy_profile_album
.
adapter
=
userProfileAlbumAdapter
rcy_profile_album
.
isNestedScrollingEnabled
=
false
}
}
override
fun
getMorePageFail
()
{
override
fun
getMorePageFail
()
{
...
...
video/app/src/main/java/com/duben/loveplayletd/ui/widgets/CustomRecyclerView.java
deleted
100644 → 0
View file @
5a9bc62f
package
com
.
duben
.
loveplayletd
.
ui
.
widgets
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
androidx.recyclerview.widget.RecyclerView
;
public
class
CustomRecyclerView
extends
RecyclerView
{
private
float
startY
;
private
static
final
int
THRESHOLD
=
10
;
public
CustomRecyclerView
(
Context
context
)
{
super
(
context
);
}
public
CustomRecyclerView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
}
public
CustomRecyclerView
(
Context
context
,
AttributeSet
attrs
,
int
defStyle
)
{
super
(
context
,
attrs
,
defStyle
);
}
@Override
public
boolean
dispatchTouchEvent
(
MotionEvent
ev
)
{
switch
(
ev
.
getAction
())
{
case
MotionEvent
.
ACTION_DOWN
:
startY
=
ev
.
getY
();
getParent
().
requestDisallowInterceptTouchEvent
(
true
);
break
;
case
MotionEvent
.
ACTION_MOVE
:
float
currentY
=
ev
.
getY
();
float
dy
=
currentY
-
startY
;
if
(
dy
<
-
THRESHOLD
)
{
getParent
().
requestDisallowInterceptTouchEvent
(
false
);
}
break
;
case
MotionEvent
.
ACTION_UP
:
case
MotionEvent
.
ACTION_CANCEL
:
getParent
().
requestDisallowInterceptTouchEvent
(
false
);
break
;
}
return
super
.
dispatchTouchEvent
(
ev
);
}
}
\ No newline at end of file
video/app/src/main/res/layout/activity_user_profile.xml
View file @
0f22f0b6
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
android:textSize=
"18sp"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<
com.duben.loveplayletd.ui.widgets.Custom
RecyclerView
<
androidx.recyclerview.widget.
RecyclerView
android:id=
"@+id/rcy_profile_album"
android:id=
"@+id/rcy_profile_album"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"120dp"
android:layout_height=
"120dp"
...
...
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