public abstract class BaseMvpFragment<P extends BaseMvpPresenter,M> extends LazyFragment implements BaseMvpView
| 限定符和类型 | 字段和说明 |
|---|---|
protected View |
mRootView |
protected boolean |
mViewCreated |
| 构造器和说明 |
|---|
BaseMvpFragment() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
findView()
绑定控件
|
<V extends View> |
findViewById(int id) |
protected abstract int |
getLayoutId() |
P |
getPresenter() |
View |
getRootView() |
<V extends View> |
getView(int id) |
protected abstract void |
initView()
初始化控件
|
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) |
void |
onDestroy() |
void |
onViewCreated(View view,
Bundle savedInstanceState) |
goActivity, goActivityForResult, onActivityCreated, onDestroyView, onHiddenChanged, onInvisible, onPause, onResume, onVisible, setUserVisibleHintclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloading, showToast, showToast, showToastError, showToastError, showToastSuccess, showToastSuccesspublic void onViewCreated(@NonNull
View view,
@Nullable
Bundle savedInstanceState)
protected void findView()
protected abstract void initView()
public void onDestroy()
public P getPresenter()
@Nullable
public View onCreateView(@NonNull
LayoutInflater inflater,
@Nullable
ViewGroup container,
@Nullable
Bundle savedInstanceState)
@Nullable public View getRootView()
public final <V extends View> V getView(@IdRes
int id)
public final <V extends View> V findViewById(@IdRes
int id)
protected abstract int getLayoutId()