public class TakAlertDialog
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.FrameLayout |
_customView |
protected android.widget.TextView |
_messageView |
protected TakButton |
_negativeButton |
protected TakButton |
_positiveButton |
protected android.content.res.Resources |
_resources |
protected android.widget.TextView |
_titleView |
Constructor and Description |
---|
TakAlertDialog() |
Modifier and Type | Method and Description |
---|---|
protected android.view.View |
createView() |
TakButton |
getNegativeButton() |
TakButton |
getPositiveButton() |
protected void |
initializeView() |
void |
setMessage(java.lang.CharSequence message) |
void |
setMessage(int msgId) |
void |
setNegativeButton(int resId,
android.content.DialogInterface.OnClickListener listener) |
void |
setNegativeButton(java.lang.String text,
android.content.DialogInterface.OnClickListener listener) |
void |
setPositiveButton(int resId,
android.content.DialogInterface.OnClickListener listener) |
void |
setPositiveButton(java.lang.String text,
android.content.DialogInterface.OnClickListener listener) |
void |
setTitle(java.lang.CharSequence title) |
void |
setTitle(int titleId) |
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, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
protected android.content.res.Resources _resources
protected android.widget.TextView _titleView
protected android.widget.TextView _messageView
protected android.widget.FrameLayout _customView
protected TakButton _positiveButton
protected TakButton _negativeButton
protected void initializeView()
protected android.view.View createView()
public void setTitle(java.lang.CharSequence title)
setTitle
in class android.app.Dialog
public void setTitle(int titleId)
setTitle
in class android.app.Dialog
public void setMessage(java.lang.CharSequence message)
public void setMessage(int msgId)
public void setPositiveButton(int resId, android.content.DialogInterface.OnClickListener listener)
public void setPositiveButton(java.lang.String text, android.content.DialogInterface.OnClickListener listener)
public void setNegativeButton(int resId, android.content.DialogInterface.OnClickListener listener)
public void setNegativeButton(java.lang.String text, android.content.DialogInterface.OnClickListener listener)
public TakButton getPositiveButton()
public TakButton getNegativeButton()