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);
}
Aggregations