use of com.lcodecore.twinklingrefreshlayout.adapter.FoodAdapter in project TwinklingRefreshLayout by lcodecorex.
the class FoodActivity method setupRecyclerView.
private void setupRecyclerView(RecyclerView rv) {
rv.setLayoutManager(new LinearLayoutManager(rv.getContext()));
foodAdapter = new FoodAdapter();
rv.setAdapter(foodAdapter);
final TwinklingRefreshLayout refreshLayout = (TwinklingRefreshLayout) findViewById(R.id.refresh);
// ProgressLayout headerView = new ProgressLayout(getContext());
BezierLayout headerView = new BezierLayout(this);
refreshLayout.setHeaderView(headerView);
// refreshLayout.setFloatRefresh(false);
refreshLayout.setPureScrollModeOn(true);
// refreshLayout.setEnableOverlayRefreshView(false);
// refreshLayout.setAutoLoadMore(true);
refreshCard();
}
Aggregations