use of cn.nicolite.palm300heroes.view.adapter.FightSkillAdapter in project Palm300Heroes by nicolite.
the class FightSkillActivity method doBusiness.
@Override
protected void doBusiness() {
toolbarTitle.setText("战斗技能");
setSupportActionBar(toolbar);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowTitleEnabled(false);
}
lRecyclerView.setLayoutManager(new LinearLayoutManager(context, OrientationHelper.VERTICAL, false));
lRecyclerViewAdapter = new LRecyclerViewAdapter(new FightSkillAdapter(context, dataList));
lRecyclerView.setAdapter(lRecyclerViewAdapter);
lRecyclerView.addItemDecoration(new DividerItemDecoration(context, OrientationHelper.VERTICAL));
lRecyclerView.setLoadMoreEnabled(false);
fightSkillPresenter = new FightSkillPresenter(this, this);
lRecyclerView.setOnRefreshListener(new OnRefreshListener() {
@Override
public void onRefresh() {
fightSkillPresenter.showFightSkill(true);
}
});
lRecyclerView.setOnNetWorkErrorListener(new OnNetWorkErrorListener() {
@Override
public void reload() {
fightSkillPresenter.showFightSkill(true);
}
});
fightSkillPresenter.showFightSkill(false);
}
Aggregations