Search in sources :

Example 1 with GankPresenter

use of com.seven.seven.gank.presenter.GankPresenter in project seven_develop by seven123456.

the class GankFragment method initView.

@Override
protected void initView() {
    EventBus.getDefault().register(this);
    gankPresenter = new GankPresenter(this, (MainActivity) getActivity());
    inError = rootView.findViewById(R.id.in_error);
    inError.setVisibility(View.VISIBLE);
    inError.playAnimation();
    recyclerView = rootView.findViewById(R.id.recycler);
    gankAdapter = new GankAdapter(R.layout.recycler_item_gank);
    recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
    recyclerView.setAdapter(gankAdapter);
}
Also used : GankAdapter(com.seven.seven.gank.adapter.GankAdapter) GankPresenter(com.seven.seven.gank.presenter.GankPresenter) MainActivity(com.seven.seven.ui.MainActivity) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 GankAdapter (com.seven.seven.gank.adapter.GankAdapter)1 GankPresenter (com.seven.seven.gank.presenter.GankPresenter)1 MainActivity (com.seven.seven.ui.MainActivity)1