public static class DatePickerDialog.Builder extends Dialog.Builder implements DatePickerDialog.OnDateChangedListener
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<DatePickerDialog.Builder> |
CREATOR |
protected int |
mDay |
protected int |
mMaxDay |
protected int |
mMaxMonth |
protected int |
mMaxYear |
protected int |
mMinDay |
protected int |
mMinMonth |
protected int |
mMinYear |
protected int |
mMonth |
protected int |
mYear |
mContentViewId, mDialog, mNegative, mNeutral, mPositive, mStyleId, mTitle| Modifier | Constructor and Description |
|---|---|
|
DatePickerDialog.Builder() |
|
DatePickerDialog.Builder(int styleId) |
|
DatePickerDialog.Builder(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear,
int day,
int month,
int year) |
|
DatePickerDialog.Builder(int styleId,
int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear,
int day,
int month,
int year) |
protected |
DatePickerDialog.Builder(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
Dialog.Builder |
contentView(int layoutId) |
DatePickerDialog.Builder |
date(int day,
int month,
int year) |
DatePickerDialog.Builder |
date(long time) |
DatePickerDialog.Builder |
dateRange(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear) |
DatePickerDialog.Builder |
dateRange(long minTime,
long maxTime) |
int |
getDay() |
int |
getMonth() |
int |
getYear() |
protected Dialog |
onBuild(android.content.Context context,
int styleId)
Get a appropriate Dialog instance will be used for styling later.
|
void |
onDateChanged(int oldDay,
int oldMonth,
int oldYear,
int newDay,
int newMonth,
int newYear)
Called when the selected date is changed.
|
protected void |
onReadFromParcel(android.os.Parcel in)
Child class should override this function and read back any saved attributes.
|
protected void |
onWriteToParcel(android.os.Parcel dest,
int flags)
Child class should override this function and write down all attributes will be saved.
|
build, describeContents, getDialog, negativeAction, neutralAction, onBuildDone, onNegativeActionClicked, onNeutralActionClicked, onPositiveActionClicked, positiveAction, style, title, writeToParcelprotected int mMinDay
protected int mMinMonth
protected int mMinYear
protected int mMaxDay
protected int mMaxMonth
protected int mMaxYear
protected int mDay
protected int mMonth
protected int mYear
public static final android.os.Parcelable.Creator<DatePickerDialog.Builder> CREATOR
public DatePickerDialog.Builder()
public DatePickerDialog.Builder(int styleId)
public DatePickerDialog.Builder(int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear,
int day,
int month,
int year)
public DatePickerDialog.Builder(int styleId,
int minDay,
int minMonth,
int minYear,
int maxDay,
int maxMonth,
int maxYear,
int day,
int month,
int year)
protected DatePickerDialog.Builder(android.os.Parcel in)
public DatePickerDialog.Builder dateRange(int minDay, int minMonth, int minYear, int maxDay, int maxMonth, int maxYear)
public DatePickerDialog.Builder dateRange(long minTime, long maxTime)
public DatePickerDialog.Builder date(int day, int month, int year)
public DatePickerDialog.Builder date(long time)
public int getDay()
public int getMonth()
public int getYear()
public Dialog.Builder contentView(int layoutId)
contentView in class Dialog.Builderprotected Dialog onBuild(android.content.Context context, int styleId)
Dialog.BuilderDialog.Builder.onBuildDone(Dialog)onBuild in class Dialog.Buildercontext - A Context instance.styleId - The resourceId of Dialog's style.public void onDateChanged(int oldDay,
int oldMonth,
int oldYear,
int newDay,
int newMonth,
int newYear)
DatePickerDialog.OnDateChangedListeneronDateChanged in interface DatePickerDialog.OnDateChangedListeneroldDay - The day value of old date.oldMonth - The month value of old date.oldYear - The year value of old date.newDay - The day value of new date.newMonth - The month value of new date.newYear - The year value of new date.protected void onReadFromParcel(android.os.Parcel in)
Dialog.BuilderonReadFromParcel in class Dialog.Builderprotected void onWriteToParcel(android.os.Parcel dest,
int flags)
Dialog.BuilderonWriteToParcel in class Dialog.Builder