public class CustomTimePickerDialog extends android.app.AlertDialog implements android.content.DialogInterface.OnClickListener, TimePicker.OnTimeChangedListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomTimePickerDialog.OnTimeSetListener
The callback interface used to indicate the user is done filling in
the time (they clicked on the 'Set' button).
|
android.app.AlertDialog.Builderandroid.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Constructor and Description |
|---|
CustomTimePickerDialog(android.content.Context context,
int theme,
long delay,
CustomTimePickerDialog.OnTimeSetListener callBack) |
CustomTimePickerDialog(android.content.Context context,
long delay,
CustomTimePickerDialog.OnTimeSetListener callBack) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClick(android.content.DialogInterface dialog,
int which) |
void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
android.os.Bundle |
onSaveInstanceState() |
void |
onTimeChanged(TimePicker view,
long seconds) |
getButton, getListView, onCreate, onKeyDown, onKeyUp, setButton, setButton, setButton, setButton, setButton2, setButton2, setButton3, setButton3, setCustomTitle, setIcon, setIcon, setIconAttribute, setInverseBackgroundForced, setMessage, setTitle, setView, setViewaddContentView, 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, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, 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, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenupublic CustomTimePickerDialog(android.content.Context context,
long delay,
CustomTimePickerDialog.OnTimeSetListener callBack)
context - Parent.delay - The initial delay in seconds.callBack - How parent is notified.public CustomTimePickerDialog(android.content.Context context,
int theme,
long delay,
CustomTimePickerDialog.OnTimeSetListener callBack)
context - Parent.theme - the theme to apply to this dialogdelay - The initial delay in seconds.callBack - How parent is notified.public void onClick(android.content.DialogInterface dialog,
int which)
onClick in interface android.content.DialogInterface.OnClickListenerpublic void onTimeChanged(TimePicker view, long seconds)
onTimeChanged in interface TimePicker.OnTimeChangedListenerview - The view associated with this listener.seconds - Picked delay in secondspublic android.os.Bundle onSaveInstanceState()
onSaveInstanceState in class android.app.Dialogpublic void onRestoreInstanceState(android.os.Bundle savedInstanceState)
onRestoreInstanceState in class android.app.Dialog