public class BaseActivity
extends AutoLayoutActivity
| 限定符和类型 | 字段和说明 |
|---|---|
protected static java.lang.String |
EXTRA_BUNDLE |
| 构造器和说明 |
|---|
BaseActivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dismissAlertDialog()
隐藏弹框提示
|
void |
dismissProgressDialog()
隐藏正在显示的进度对话框
|
void |
onActivityStartEvent(ActivityStartEvent event)
接收到EventBus事件处理Activity页面跳转
|
void |
onBackPressed() |
protected void |
onDestroy() |
void |
onGlobalMsg(GlobalMsgEvent event)
接收到EventBus发送的事件,处理UI消息提示的显示
|
protected void |
onPause() |
protected void |
onResume() |
protected void |
setPresenters(BasePresenter... presenters)
设置当前活动的所有Presenter类
|
void |
showAlertDialog(java.lang.CharSequence msg)
显示弹框提示
|
void |
showAlertDialog(java.lang.CharSequence title,
java.lang.CharSequence msg,
android.content.DialogInterface.OnClickListener onPositiveClick)
弹出对话框,并设置"确认"按钮的点击事件
|
void |
showAlertDialog(java.lang.CharSequence msg,
android.content.DialogInterface.OnClickListener onPositiveClick)
显示弹框提示
|
void |
showProgressDialog(java.lang.CharSequence msg)
显示进度对话框
|
protected static final java.lang.String EXTRA_BUNDLE
protected void onResume()
protected void onPause()
public void onBackPressed()
protected void onDestroy()
protected final void setPresenters(BasePresenter... presenters)
public void showProgressDialog(java.lang.CharSequence msg)
msg - 对话框的文案信息public void dismissProgressDialog()
public void showAlertDialog(java.lang.CharSequence msg)
msg - 对话框的文案信息public void showAlertDialog(java.lang.CharSequence msg,
android.content.DialogInterface.OnClickListener onPositiveClick)
msg - 对话框的文案信息public void dismissAlertDialog()
public void showAlertDialog(java.lang.CharSequence title,
java.lang.CharSequence msg,
android.content.DialogInterface.OnClickListener onPositiveClick)
title - 标题文案msg - 内容文案onPositiveClick - 确认按钮点击事件public void onGlobalMsg(GlobalMsgEvent event)
event - 包含了提示信息和显示方式的EventBus事件public void onActivityStartEvent(ActivityStartEvent event)
event - 包含了页面跳转参数的EventBus事件