public class SingleChoiceDialog
extends android.app.Dialog
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
Modifier and Type | Field and Description |
---|---|
protected android.widget.TextView |
mButtonCancel |
protected android.widget.TextView |
mButtonOK |
protected android.content.DialogInterface.OnClickListener |
mCancelClickListener |
protected android.content.Context |
mContext |
protected java.util.List<java.lang.String> |
mList |
protected android.widget.ListView |
mListView |
protected android.content.DialogInterface.OnClickListener |
mOkClickListener |
protected android.view.View |
mRootView |
protected android.widget.TextView |
mTVTitle |
Constructor and Description |
---|
SingleChoiceDialog(android.content.Context context,
java.util.List<java.lang.String> list) |
Modifier and Type | Method and Description |
---|---|
int |
getSelectItem() |
protected void |
initData() |
protected void |
initView(android.content.Context context) |
protected void |
onButtonCancel() |
protected void |
onButtonOK() |
void |
setOnCancelButtonListener(android.content.DialogInterface.OnClickListener onClickListener) |
void |
setOnOKButtonListener(android.content.DialogInterface.OnClickListener onClickListener) |
void |
setTitle(java.lang.String title) |
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
protected android.content.Context mContext
protected android.view.View mRootView
protected android.widget.TextView mTVTitle
protected android.widget.TextView mButtonOK
protected android.widget.TextView mButtonCancel
protected android.widget.ListView mListView
protected java.util.List<java.lang.String> mList
protected android.content.DialogInterface.OnClickListener mOkClickListener
protected android.content.DialogInterface.OnClickListener mCancelClickListener
public SingleChoiceDialog(android.content.Context context, java.util.List<java.lang.String> list)
protected void initView(android.content.Context context)
public void setTitle(java.lang.String title)
public void setOnOKButtonListener(android.content.DialogInterface.OnClickListener onClickListener)
public void setOnCancelButtonListener(android.content.DialogInterface.OnClickListener onClickListener)
protected void onButtonOK()
protected void onButtonCancel()
protected void initData()
public int getSelectItem()