public class TimePickerDialog extends Dialog
| Modifier and Type | Class and Description |
|---|---|
static class |
TimePickerDialog.Builder |
static interface |
TimePickerDialog.OnTimeChangedListener |
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListenerACTION_NEGATIVE, ACTION_NEUTRAL, ACTION_POSITIVE, mActionHeight, mActionMinWidth, mActionOuterHeight, mActionOuterPadding, mActionPadding, mContentPadding, mDialogHorizontalPadding, mDialogVerticalPadding, mInAnimationId, mNegativeAction, mNeutralAction, mOutAnimationId, mPositiveAction, mTitle| Constructor and Description |
|---|
TimePickerDialog(android.content.Context context) |
TimePickerDialog(android.content.Context context,
int style) |
| Modifier and Type | Method and Description |
|---|---|
Dialog |
applyStyle(int resId) |
Dialog |
cornerRadius(float radius) |
java.lang.String |
getFormattedTime(java.text.DateFormat formatter) |
int |
getHour() |
int |
getMinute() |
TimePickerDialog |
hour(int hour) |
Dialog |
layoutParams(int width,
int height) |
TimePickerDialog |
minute(int minute) |
protected void |
onCreate() |
TimePickerDialog |
onTimeChangedListener(TimePickerDialog.OnTimeChangedListener listener) |
actionBackground, actionBackground, actionRipple, actionTextAppearance, actionTextColor, actionTextColor, addContentView, backgroundColor, cancelable, canceledOnTouchOutside, clearContent, contentMargin, contentMargin, contentView, contentView, dimAmount, dismiss, dividerColor, dividerHeight, elevation, inAnimation, maxElevation, negativeAction, negativeAction, negativeActionBackground, negativeActionBackground, negativeActionClickListener, negativeActionRipple, negativeActionTextAppearance, negativeActionTextColor, negativeActionTextColor, neutralAction, neutralAction, neutralActionBackground, neutralActionBackground, neutralActionClickListener, neutralActionRipple, neutralActionTextAppearance, neutralActionTextColor, neutralActionTextColor, outAnimation, positiveAction, positiveAction, positiveActionBackground, positiveActionBackground, positiveActionClickListener, positiveActionRipple, positiveActionTextAppearance, positiveActionTextColor, positiveActionTextColor, setCancelable, setCanceledOnTouchOutside, setContentView, setContentView, setContentView, setTitle, setTitle, show, showDivider, title, title, titleColor, titleTextAppearancecancel, closeOptionsMenu, create, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, 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, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelMessage, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setVolumeControlStream, takeKeyEvents, unregisterForContextMenupublic TimePickerDialog(android.content.Context context)
public TimePickerDialog(android.content.Context context,
int style)
public Dialog applyStyle(int resId)
applyStyle in class Dialogpublic Dialog layoutParams(int width, int height)
layoutParams in class Dialogpublic Dialog cornerRadius(float radius)
cornerRadius in class Dialogpublic TimePickerDialog hour(int hour)
public TimePickerDialog minute(int minute)
public TimePickerDialog onTimeChangedListener(TimePickerDialog.OnTimeChangedListener listener)
public int getHour()
public int getMinute()
public java.lang.String getFormattedTime(java.text.DateFormat formatter)