zhpanvip / BannerViewPager

🚀 An awesome banner view for Android,Based on ViewPager2. 这可能是全网最好用的ViewPager轮播图。简单、高效,一行代码实现循环轮播,一屏三页任意变,指示器样式任你挑。
Apache License 2.0
3.59k stars 436 forks source link

动态刷新数据的时候,中间的banner会变小 #223

Closed nopointer closed 2 years ago

zhpanvip commented 3 years ago

这个应该是ViewPager2的bug,单独使用ViewPager2时也会出现这样的问题。目前没有找到解决方案。

-------- 原始信息 -------- 发件人: nopointer @.> 日期: 2021/9/11 17:27 (GMT+08:00) 收件人: zhpanvip/BannerViewPager @.> 抄送: Subscribed @.***> 主题: [zhpanvip/BannerViewPager] 动态刷新数据的时候,中间的banner会变小 (#223)

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/zhpanvip/BannerViewPager/issues/223, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEXPBI5LZ6YVIUVGICSXEKDUBMOGDANCNFSM5D2YWODQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

XiongKe94 commented 2 years ago

我也遇到了一样的问题 @zhpanvip

zhsh2980 commented 2 years ago

我也遇到一样的问题,请问有解决方法了吗? @zhpanvip

zhpanvip commented 2 years ago

可以改用create替换refreshData解决

zhsh2980 commented 2 years ago

可以改用create替换refreshData解决

谢谢,已解决!

YingJie0712 commented 2 years ago

可以改用create替换refreshData解决

这样会好一点每次变化不是那么大了,但是循环次数很多之后,积少成多还是能看出来变小了