[Solved] How to display this type of view in recyclerview?


Assumning all items have similar views Try This:

    GridLayoutManager layoutManager = new GridLayoutManager(DashboardActivity.this, 2);

 layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
            @Override
            public int getSpanSize(int position) {

                if (positions you wish to have a different view) {
                    return 2;
                }
                return 1;

            }
        });

2

solved How to display this type of view in recyclerview?