Skip to content

gridLayoutManager.setSpanSizeLookup会发生错乱? #13

@open9527

Description

@open9527

gridLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@OverRide
public int getSpanSize(int position) {
//TODO:需要区分单张/多张 所占的位置,
if (position == 0) {
return 6;
}
if (position > 2 && position < 5) {
return 3;
}
return 2;
}
});

配置这个操作之后分割线显示错乱

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions