Search in sources :

Example 1 with SkillAdapter

use of cn.nicolite.palm300heroes.view.adapter.SkillAdapter in project Palm300Heroes by nicolite.

the class HeroSkillFragment method doBusiness.

@Override
protected void doBusiness() {
    lRecyclerView.setLayoutManager(new LinearLayoutManager(context, OrientationHelper.VERTICAL, false));
    lRecyclerViewAdapter = new LRecyclerViewAdapter(new SkillAdapter(context, dataList));
    lRecyclerView.setAdapter(lRecyclerViewAdapter);
    lRecyclerView.setLoadMoreEnabled(false);
    heroSkillPresenter = new HeroSkillPresenter(this, this);
    lRecyclerView.setOnRefreshListener(new OnRefreshListener() {

        @Override
        public void onRefresh() {
            heroSkillPresenter.showSkill(unCode, true);
        }
    });
}
Also used : LRecyclerViewAdapter(com.github.jdsjlzx.recyclerview.LRecyclerViewAdapter) HeroSkillPresenter(cn.nicolite.palm300heroes.presenter.HeroSkillPresenter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) OnRefreshListener(com.github.jdsjlzx.interfaces.OnRefreshListener) SkillAdapter(cn.nicolite.palm300heroes.view.adapter.SkillAdapter)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 HeroSkillPresenter (cn.nicolite.palm300heroes.presenter.HeroSkillPresenter)1 SkillAdapter (cn.nicolite.palm300heroes.view.adapter.SkillAdapter)1 OnRefreshListener (com.github.jdsjlzx.interfaces.OnRefreshListener)1 LRecyclerViewAdapter (com.github.jdsjlzx.recyclerview.LRecyclerViewAdapter)1