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

BannerComponent 轮播bug??? #55

Open
QXH313 opened this issue Jan 22, 2018 · 0 comments
Open

BannerComponent 轮播bug??? #55

QXH313 opened this issue Jan 22, 2018 · 0 comments

Comments

@QXH313
Copy link

QXH313 commented Jan 22, 2018

1、轮播出现,ANR
操作:对于一个bannerComponent,根据数据不同反复复设置不同的Adapter对象
比如:bannerComponent.setAdapter(new Adapte(list))
结果:第二次调用bannerComponent.setAdapter(new Adapte(list))出现ANR

2、轮播indicatorView切换错误
操作:bannerComponent.setCurrentItem(n,false)
当n大于数据源个数的时候
结果:indicatorView始终默认最后一个小圆点被选中

3、RecyclerIndicatorView和BannerComponent一起用Crash
日志如下:
01-24 10:56:36.263 32627-32627/com.ckditu.map E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ckditu.map, PID: 32627
java.lang.StackOverflowError: stack size 8MB
at android.support.v7.widget.ChildHelper.getChildCount(ChildHelper.java:253)
at android.support.v7.widget.RecyclerView$LayoutManager.getChildCount(RecyclerView.java:8198)
at android.support.v7.widget.LinearLayoutManager.findViewByPosition(LinearLayoutManager.java:401)
at com.shizhefei.view.indicator.RecyclerIndicatorView.scrollToTab(RecyclerIndicatorView.java:189)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:113)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:109)
at com.shizhefei.view.indicator.BannerComponent$1.onItemSelected(BannerComponent.java:64)
at com.shizhefei.view.indicator.RecyclerIndicatorView.setCurrentItem(RecyclerIndicatorView.java:122)
at com.shizhefei.view.indicator.BannerComponent.setCurrentItem(BannerComponent.java:10

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

1 participant