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

setBannerGalleryEffect设置画廊效果后更新数据经常会出现画廊效果失效 #1224

Open
FranklinStar opened this issue Apr 20, 2024 · 3 comments

Comments

@FranklinStar
Copy link

FranklinStar commented Apr 20, 2024

调用setBannerGalleryEffect设置画廊效果后,再调用adapter的setDatas方法跟新数据,经常会出现画廊效果失效,需要滑动一下才重新正常,版本:2.2.3

@ly469097645
Copy link

同问

@davidgerka
Copy link

davidgerka commented May 31, 2024

我也出现这个问题。在GalleryActivity界面里,当Banner显示第一张横幅图片时,点击按钮重设一下数据,就会出现。如下图:
image
image

@qweenhool
Copy link

参考这位老哥的,在notifyDataSetChanged方法后调用如下方法
banner.post(() -> { banner.getViewPager2().requestTransform(); });
#1149

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

4 participants