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