Search in sources :

Example 1 with HomeAdapter

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);
}
Also used : HomeAdapter(ve.com.abicelis.remindy.app.adapters.HomeAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 HomeAdapter (ve.com.abicelis.remindy.app.adapters.HomeAdapter)1