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