public class DatePickerDialog extends Dialog
| Modifier and Type | Class and Description |
|---|---|
static class |
DatePickerDialog.Builder |
static interface |
DatePickerDialog.OnDateChangedListener |
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 |
|---|
DatePickerDialog(android.content.Context context) |
DatePickerDialog(android.content.Context context,
int style) |
| Modifier and Type | Method and Description |
|---|---|
Dialog |
applyStyle(int resId) |
Dialog |
cornerRadius(float radius) |
DatePickerDialog |
date(int day,
int month,
int year) |
DatePickerDialog |
date(long time) |
DatePickerDialog |
dateRange(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear) |
DatePickerDialog |
dateRange(long minTime,
long maxTime) |
java.util.Calendar |
getCalendar() |
long |
getDate() |
int |
getDay() |
java.lang.String |
getFormattedDate(java.text.DateFormat formatter) |
int |
getMonth() |
int |
getYear() |
Dialog |
layoutParams(int width,
int height) |
protected void |
onCreate() |
DatePickerDialog |
onDateChangedListener(DatePickerDialog.OnDateChangedListener 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 DatePickerDialog(android.content.Context context)
public DatePickerDialog(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 DatePickerDialog dateRange(int minDay, int minMonth, int minYear, int maxDay, int maxMonth, int maxYear)
public DatePickerDialog dateRange(long minTime, long maxTime)
public DatePickerDialog date(int day, int month, int year)
public DatePickerDialog date(long time)
public DatePickerDialog onDateChangedListener(DatePickerDialog.OnDateChangedListener listener)
public int getDay()
public int getMonth()
public int getYear()
public long getDate()
public java.util.Calendar getCalendar()
public java.lang.String getFormattedDate(java.text.DateFormat formatter)