public class SlideDateTimeDialogFragment extends DialogFragment implements DateFragment.DateChangedListener, TimeFragment.TimeChangedListener
The DialogFragment that contains the SlidingTabLayout
and CustomViewPager.
The CustomViewPager contains the DateFragment and TimeFragment.
This DialogFragment is managed by SlideDateTimePicker.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_SLIDE_DATE_TIME_DIALOG_FRAGMENT |
| Constructor and Description |
|---|
SlideDateTimeDialogFragment() |
| Modifier and Type | Method and Description |
|---|---|
static SlideDateTimeDialogFragment |
newInstance(SlideDateTimeListener listener,
java.util.Date initialDate,
java.util.Date minDate,
java.util.Date maxDate,
boolean isClientSpecified24HourTime,
boolean is24HourTime,
int theme,
int indicatorColor)
Return a new instance of
SlideDateTimeDialogFragment with its bundle
filled with the incoming arguments. |
void |
onAttach(android.app.Activity activity) |
void |
onCancel(android.content.DialogInterface dialog)
Called when the user clicks outside the dialog or presses the Back
button.
|
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDateChanged(int year,
int month,
int day)
The callback used by the DatePicker to update
mCalendar as
the user changes the date. |
void |
onDestroyView() |
void |
onTimeChanged(int hour,
int minute)
The callback used by the TimePicker to update
mCalendar as
the user changes the time. |
public static final java.lang.String TAG_SLIDE_DATE_TIME_DIALOG_FRAGMENT
public static SlideDateTimeDialogFragment newInstance(SlideDateTimeListener listener, java.util.Date initialDate, java.util.Date minDate, java.util.Date maxDate, boolean isClientSpecified24HourTime, boolean is24HourTime, int theme, int indicatorColor)
Return a new instance of SlideDateTimeDialogFragment with its bundle
filled with the incoming arguments.
Called by SlideDateTimePicker.show().
listener - initialDate - minDate - maxDate - isClientSpecified24HourTime - is24HourTime - theme - indicatorColor - public void onAttach(android.app.Activity activity)
public void onCreate(android.os.Bundle savedInstanceState)
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
public void onDestroyView()
public void onDateChanged(int year,
int month,
int day)
The callback used by the DatePicker to update mCalendar as
the user changes the date. Each time this is called, we also update
the text on the date tab to reflect the date the user has currenly
selected.
Implements the DateFragment.DateChangedListener
interface.
onDateChanged in interface DateFragment.DateChangedListenerpublic void onTimeChanged(int hour,
int minute)
The callback used by the TimePicker to update mCalendar as
the user changes the time. Each time this is called, we also update
the text on the time tab to reflect the time the user has currenly
selected.
Implements the TimeFragment.TimeChangedListener
interface.
onTimeChanged in interface TimeFragment.TimeChangedListenerpublic void onCancel(android.content.DialogInterface dialog)
Called when the user clicks outside the dialog or presses the Back button.
Note: Actual Cancel button clicks are handled by mCancelButton's
event handler.