Closed supervital closed 7 years ago
Hi,
I have an issue when the first visible headers on the screen are empty.
Here my code:
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.rv_list); recyclerView.setHasFixedSize(true); recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
Adapter adapter = new Adapter (list); StickyHeaderDecoration decoration = new StickyHeaderDecoration(adapter);
recyclerView.addItemDecoration(decoration); recyclerView.setAdapter(adapter);
What I do wrong ? Thanks. :)
Hi,
I have an issue when the first visible headers on the screen are empty.
Here my code:
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.rv_list); recyclerView.setHasFixedSize(true); recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
Adapter adapter = new Adapter (list); StickyHeaderDecoration decoration = new StickyHeaderDecoration(adapter);
recyclerView.addItemDecoration(decoration); recyclerView.setAdapter(adapter);
What I do wrong ? Thanks. :)