public static class TimePickerDialog.Builder extends Dialog.Builder implements TimePickerDialog.OnTimeChangedListener
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<TimePickerDialog.Builder> |
CREATOR |
protected int |
mHour |
protected int |
mMinute |
mContentViewId, mDialog, mNegative, mNeutral, mPositive, mStyleId, mTitle| Modifier | Constructor and Description |
|---|---|
|
TimePickerDialog.Builder() |
|
TimePickerDialog.Builder(int hourOfDay,
int minute) |
|
TimePickerDialog.Builder(int styleId,
int hourOfDay,
int minute) |
protected |
TimePickerDialog.Builder(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
Dialog.Builder |
contentView(int layoutId) |
int |
getHour() |
int |
getMinute() |
TimePickerDialog.Builder |
hour(int hour) |
TimePickerDialog.Builder |
minute(int minute) |
protected Dialog |
onBuild(android.content.Context context,
int styleId)
Get a appropriate Dialog instance will be used for styling later.
|
protected void |
onReadFromParcel(android.os.Parcel in)
Child class should override this function and read back any saved attributes.
|
void |
onTimeChanged(int oldHour,
int oldMinute,
int newHour,
int newMinute)
Called when the selected time is changed.
|
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 mHour
protected int mMinute
public static final android.os.Parcelable.Creator<TimePickerDialog.Builder> CREATOR
public TimePickerDialog.Builder()
public TimePickerDialog.Builder(int hourOfDay,
int minute)
public TimePickerDialog.Builder(int styleId,
int hourOfDay,
int minute)
protected TimePickerDialog.Builder(android.os.Parcel in)
public TimePickerDialog.Builder hour(int hour)
public TimePickerDialog.Builder minute(int minute)
public int getHour()
public int getMinute()
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 onTimeChanged(int oldHour,
int oldMinute,
int newHour,
int newMinute)
TimePickerDialog.OnTimeChangedListeneronTimeChanged in interface TimePickerDialog.OnTimeChangedListeneroldHour - The hour value of old time.oldMinute - The minute value of old time.newHour - The hour value of new time.newMinute - The minute value of new time.protected void onWriteToParcel(android.os.Parcel dest,
int flags)
Dialog.BuilderonWriteToParcel in class Dialog.Builderprotected void onReadFromParcel(android.os.Parcel in)
Dialog.BuilderonReadFromParcel in class Dialog.Builder