Пример #1
0
 @Override
 protected void onFinishInflate() {
   super.onFinishInflate();
   getListView().setAdapter(mAdapter);
   getListView().setLayoutManager(new LinearLayoutManager(getContext()));
   mPresenter.takeView(this);
 }
Пример #2
0
 @Override
 protected void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   mPresenter.dropView(this);
 }