use of com.codeest.geeknews.ui.vtex.adapter.NodeListAdapter in project GeekNews by codeestX.
the class NodeListActivity method initEventAndData.
@Override
protected void initEventAndData() {
nodeName = getIntent().getStringExtra(Constants.IT_VTEX_NODE_NAME);
setToolBar(toolBar, nodeName);
mAdapter = new NodeListAdapter(mContext, new ArrayList<NodeListBean>());
rvContent.setLayoutManager(new LinearLayoutManager(mContext));
rvContent.setAdapter(mAdapter);
swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
mPresenter.getContent(nodeName);
}
});
ivProgress.start();
mPresenter.getContent(nodeName);
mPresenter.getTopInfo(nodeName);
}
Aggregations