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

4.1.4非常好用,咨询2个问题 #3863

Open
50kg opened this issue May 1, 2024 · 0 comments
Open

4.1.4非常好用,咨询2个问题 #3863

50kg opened this issue May 1, 2024 · 0 comments

Comments

@50kg
Copy link

50kg commented May 1, 2024

问题1:mAdapter.setEmptyView,这个方法布局无论如何写,view永远是居中的,setEmptyViewLayout这个方法传id显示正常,请问如何解决

问题2:QuickAdapterHelper + addAfterAdapter,如何在getSpanSize方法设置,所有的afterAdapter 占用2格呢,postion是谁的下标呢?打印了log没看明白
manager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@OverRide
public int getSpanSize(int position) {
if (position == 0) {
return 2;
}
return 1;//其他的占两个格
}
});

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