use of ve.com.abicelis.remindy.app.adapters.PlaceAdapter in project Remindy by abicelis.
the class PlaceListActivity method setUpRecyclerView.
private void setUpRecyclerView() {
mLayoutManager = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.VERTICAL, false);
mAdapter = new PlaceAdapter(this, mPlaces);
DividerItemDecoration itemDecoration = new DividerItemDecoration(this, mLayoutManager.getOrientation());
itemDecoration.setDrawable(ContextCompat.getDrawable(this, R.drawable.item_decoration_complete_line));
mRecyclerView.addItemDecoration(itemDecoration);
mRecyclerView.setLayoutManager(mLayoutManager);
mRecyclerView.setAdapter(mAdapter);
}
Aggregations