[Solved] GridView: GridView with different cells sizes and layout,


User RecyclerView with GridLayoutManager that have set SpanSizeLookup. So it will be as follows:

int fullSpanSize = 3;
int normalSpanSize = 1;

GridLayoutManager layout = new GridLayoutManager(context, fullSpanSize);
layout.setSpaneSizeLookup(new GridLayoutManager.SpanSizeLookup() {
    @Override
    public int getSpanSize(int position) {
        return position == 3 ? fullSpanSize : normalSpanSize;
    }
});
recyclerView.setLayoutManager(layout);

1

solved GridView: GridView with different cells sizes and layout,