use of ve.com.abicelis.remindy.app.adapters.HomeAdapter in project Remindy by abicelis.
the class HomeListFragment method setUpRecyclerView.
private void setUpRecyclerView() {
mLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);
mAdapter = new HomeAdapter(this, mTasks);
//DividerItemDecoration itemDecoration = new DividerItemDecoration(getContext(), mLayoutManager.getOrientation());
//itemDecoration.setDrawable(ContextCompat.getDrawable(getActivity(), R.drawable.item_decoration_half_line));
//mRecyclerView.addItemDecoration(itemDecoration);
mRecyclerView.setLayoutManager(mLayoutManager);
mRecyclerView.setAdapter(mAdapter);
}
Aggregations