Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clipChildren 问题 #24

Closed
protectedMan opened this issue Apr 28, 2023 · 8 comments
Closed

clipChildren 问题 #24

protectedMan opened this issue Apr 28, 2023 · 8 comments

Comments

@protectedMan
Copy link

protectedMan commented Apr 28, 2023

设置了clipChildren=false 后 recyleview以外的区域也透明展示出来了, 但是我还想实现recyleview的item可以drag出来的效果需要设置clipChildren=false , 该如何是好.
这可能不是本库的问题, 但是希望作者如果有解决方案能帮个忙

视频见:
image

@protectedMan
Copy link
Author

device-2023-04-28-154755.mp4

@shenbengit
Copy link
Owner

设置了clipChildren=false 后 recyleview以外的区域也透明展示出来了, 但是我还想实现recyleview的item可以drag出来的效果需要设置clipChildren=false , 该如何是好. 这可能不是本库的问题, 但是希望作者如果有解决方案能帮个忙

视频见: image

recyleview以外的区域也透明展示出来了,这个在视频里体现了吗?没看出来啊

@protectedMan
Copy link
Author

红线是recyleivew区域
image

@shenbengit
Copy link
Owner

实际效果是啥样的,你这是弹出框?布局xml 看下。

@protectedMan
Copy link
Author

protectedMan commented May 4, 2023

写了个简单的demo你方便时候看下 🙏
https://github.com/protectedMan/RecyclerViewDrag.git

activity_folder2.xml

@shenbengit
Copy link
Owner

image
你的意思是这部分是多余的吗?

@protectedMan
Copy link
Author

是的

@shenbengit
Copy link
Owner

你先试试 使用clipToPadding 能不能达到类似的效果, #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants