use of de.djuelg.neuronizer.presentation.ui.custom.RecyclerViewScrollListener in project Neuronizer by djuelg.
the class FlexibleRecyclerView method configure.
public void configure(View emptyView, RecyclerView.Adapter adapter, View fabMenu) {
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());
FlexibleItemDecoration decoration = new FlexibleItemDecoration(getContext());
decoration.withDefaultDivider();
decoration.withDrawOver(true);
setHasFixedSize(false);
setLayoutManager(layoutManager);
setEmptyView(emptyView);
setAdapter(adapter);
addItemDecoration(decoration);
addOnScrollListener(new RecyclerViewScrollListener(fabMenu));
}
Aggregations