答案 0 :(得分:1)
使用StaggeredGridLayoutManager无法做到这一点。这只是使用GridLayoutManager完成的。例如:
GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3, GridLayoutManager.VERTICAL, false);
gridLayoutManager.setSpanSizeLookup(
new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {
return (position == 0 ? 3 : 1);
}
});