use of com.shizhefei.view.coolrefreshview.header.MaterialHeader in project MVCHelper by LuckyJayce.
the class MaterialHeaderFragment method onCreateViewLazy.
@Override
protected void onCreateViewLazy(Bundle savedInstanceState) {
super.onCreateViewLazy(savedInstanceState);
setContentView(R.layout.fragment_recyclerview);
coolRefreshView = (CoolRefreshView) findViewById(R.id.recyclerview_funnyRefreshView);
recyclerView = (RecyclerView) findViewById(R.id.recyclerview_recyclerView);
coolRefreshView.setPullHeader(new MaterialHeader(getContext()));
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
mvcHelper = new MVCCoolHelper<>(coolRefreshView);
mvcHelper.setDataSource(new BooksOkHttp_AsyncDataSource());
mvcHelper.setAdapter(new ReBooksAdapter(getContext()));
mvcHelper.refresh();
}
use of com.shizhefei.view.coolrefreshview.header.MaterialHeader in project MVCHelper by LuckyJayce.
the class PinContentMaterialHeaderFragment method onCreateViewLazy.
@Override
protected void onCreateViewLazy(Bundle savedInstanceState) {
super.onCreateViewLazy(savedInstanceState);
setContentView(R.layout.fragment_recyclerview);
coolRefreshView = (CoolRefreshView) findViewById(R.id.recyclerview_funnyRefreshView);
recyclerView = (RecyclerView) findViewById(R.id.recyclerview_recyclerView);
coolRefreshView.setPullHeader(new MaterialHeader(getContext()), true);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
mvcHelper = new MVCCoolHelper<>(coolRefreshView);
mvcHelper.setDataSource(new BooksOkHttp_AsyncDataSource());
mvcHelper.setAdapter(new ReBooksAdapter(getContext()));
mvcHelper.refresh();
}
Aggregations