footer size is not change in gridlayout with item span 2 and footer span 1
can you please add grid layout manager with span count 2 for items and footer progressbar with span count 1, i tried but footer span size is half of the screen while item span size is 1.
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.my_recycler_view); footerAdapter = new FooterAdapter(FooterRecyclerActivity.this, getListItems()); GridLayoutManager linearLayoutManager = new GridLayoutManager(this, 2); linearLayoutManager.setSmoothScrollbarEnabled(true); linearLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { @Override public int getSpanSize(int position) { if (footerAdapter.getItemViewType(position) == FooterAdapter.TYPE_FOOTER) return 1; else return 2; } }); recyclerView.setLayoutManager(linearLayoutManager); recyclerView.setAdapter(footerAdapter);