Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

LinearLayoutManager footView宽度不能占全屏 #3

Closed
0xm1nam0 opened this issue Feb 2, 2016 · 5 comments
Closed

LinearLayoutManager footView宽度不能占全屏 #3

0xm1nam0 opened this issue Feb 2, 2016 · 5 comments

Comments

@0xm1nam0
Copy link

0xm1nam0 commented Feb 2, 2016

LinearLayoutManager footView宽度不能占全屏

StaggeredGridLayoutManager SGlayoutManager = new StaggeredGridLayoutManager(1, StaggeredGridLayoutManager.VERTICAL);
代替后上拉加载更多后报错,LinearLayoutManager 可以正常上拉加载更多
java.lang.ArrayIndexOutOfBoundsException
src.length=11 srcPos=10 dst.length=11 dstPos=20 length=-9
java.lang.System.arraycopy(Native Method)

@0xm1nam0
Copy link
Author

0xm1nam0 commented Feb 2, 2016

StaggeredGridLayoutManager footView宽度能占全屏,但是上拉加载更多后报错

@chenenyu
Copy link
Collaborator

chenenyu commented Feb 2, 2016

@WeissWill
LinearLayoutManager footView宽度不能占全屏 你的footerView可以设置LayoutParams.MATCH_PARENT. StaggeredGridLayoutManager加载更多报错,请问是通过adapter.addAll等方法改变数据源的吗?

@0xm1nam0
Copy link
Author

0xm1nam0 commented Feb 2, 2016

@chenenyu 是通过adapter.addAll改变数据源

@chenenyu
Copy link
Collaborator

chenenyu commented Feb 2, 2016

@WeissWill 好的,我将尽快查证,如果有问题,会尽快修复并通知你 : )

@0xm1nam0
Copy link
Author

0xm1nam0 commented Feb 2, 2016

谢谢!LinearLayoutManager footView设置LayoutParams.MATCH_PARENT已经解决问题了。
至于StaggeredGridLayoutManager只是个替代方案,不用急: )

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

No branches or pull requests

2 participants