Search in sources :

Example 1 with SkinAdapter

use of cn.nicolite.palm300heroes.view.oldAdapter.SkinAdapter in project Palm300Heroes by nicolite.

the class HeroSkinFragment method doBusiness.

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

        @Override
        public void onRefresh() {
            heroSkinPresenter.showSkin(unCode, true);
        }
    });
}
Also used : SkinAdapter(cn.nicolite.palm300heroes.view.oldAdapter.SkinAdapter) LRecyclerViewAdapter(com.github.jdsjlzx.recyclerview.LRecyclerViewAdapter) HeroSkinPresenter(cn.nicolite.palm300heroes.presenter.HeroSkinPresenter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) OnRefreshListener(com.github.jdsjlzx.interfaces.OnRefreshListener)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 HeroSkinPresenter (cn.nicolite.palm300heroes.presenter.HeroSkinPresenter)1 SkinAdapter (cn.nicolite.palm300heroes.view.oldAdapter.SkinAdapter)1 OnRefreshListener (com.github.jdsjlzx.interfaces.OnRefreshListener)1 LRecyclerViewAdapter (com.github.jdsjlzx.recyclerview.LRecyclerViewAdapter)1