public static class QMUIDialog.CheckableDialogBuilder extends QMUIDialogBuilder<T>
QMUIDialogBuilder.OrientationHORIZONTAL, mActionContainer, mActions, mAnchorBottomView, mAnchorTopView, mDialog, mDialogView, mRootView, mTitle, mTitleView, VERTICAL| 构造器和说明 |
|---|
CheckableDialogBuilder(android.content.Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
QMUIDialog.CheckableDialogBuilder |
addItems(java.lang.CharSequence[] items,
android.content.DialogInterface.OnClickListener listener)
添加菜单项
|
int |
getCheckedIndex()
获取当前选中的菜单项的下标
|
protected void |
onCreateContent(QMUIDialog dialog,
android.view.ViewGroup parent,
android.content.Context context)
创建中间的区域
|
protected void |
onItemClick(int index) |
QMUIDialog.CheckableDialogBuilder |
setCheckedIndex(int checkedIndex)
设置选中的菜单项的下班
|
addAction, addAction, addAction, addAction, addAction, addAction, addAction, create, create, getAnchorBottomView, getAnchorTopView, getBaseContext, getContentAreaMaxHeight, getPositiveAction, getTitleView, hasTitle, onAfter, onConfigTitleView, onCreateHandlerBar, onCreateTitle, setActionContainerOrientation, setActionDivider, setCancelable, setCanceledOnTouchOutside, setChangeAlphaForPressOrDisable, setContentAreaMaxHeight, setOnDecorationListener, setTitle, setTitle, showpublic int getCheckedIndex()
public QMUIDialog.CheckableDialogBuilder setCheckedIndex(int checkedIndex)
protected void onCreateContent(QMUIDialog dialog, android.view.ViewGroup parent, android.content.Context context)
QMUIDialogBuilderprotected void onItemClick(int index)
public QMUIDialog.CheckableDialogBuilder addItems(java.lang.CharSequence[] items, android.content.DialogInterface.OnClickListener listener)
items - 所有菜单项的文字listener - 菜单项的点击事件,可以在点击事件里调用 setCheckedIndex(int) 来设置选中某些菜单项