Klasse SimpleTimeDialog

java.lang.Object
androidx.fragment.app.Fragment
androidx.fragment.app.DialogFragment
Alle implementierten Schnittstellen:
android.content.ComponentCallbacks, android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnDismissListener, android.view.View.OnCreateContextMenuListener, android.widget.TimePicker.OnTimeChangedListener, androidx.activity.result.ActivityResultCaller, androidx.lifecycle.HasDefaultViewModelProviderFactory, androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner

public class SimpleTimeDialog extends CustomViewDialog<SimpleTimeDialog> implements android.widget.TimePicker.OnTimeChangedListener
A time-picker dialog

Created by eltos on 02.02.2017.

  • Felddetails

  • Konstruktordetails

    • SimpleTimeDialog

      public SimpleTimeDialog()
  • Methodendetails

    • build

      public static SimpleTimeDialog build()
    • hour

      public SimpleTimeDialog hour(int hour)
      Specify the initially set hour
      Parameter:
      hour - initial hour (0-23)
      Gibt zurück:
      this instance
    • minute

      public SimpleTimeDialog minute(int minute)
      Specify the initially set minute
      Parameter:
      minute - initial minute (0-59)
      Gibt zurück:
      this instance
    • set24HourView

      public SimpleTimeDialog set24HourView(boolean view24Hour)
      Changes the hour display mode between 24 and AM/PM
      Parameter:
      view24Hour - true to use 24 hour mode, false to use AM/PM
      Gibt zurück:
      this instance
    • onCreateContentView

      protected android.view.View onCreateContentView(android.os.Bundle savedInstanceState)
      Beschreibung aus Klasse kopiert: CustomViewDialog
      Inflate your custom view here.
      Angegeben von:
      onCreateContentView in Klasse CustomViewDialog<SimpleTimeDialog>
      Parameter:
      savedInstanceState - The last saved instance state of the Fragment, or null if this fragment is created for the first time.
      Gibt zurück:
      Return a new View to be displayed by the Fragment.
    • onTimeChanged

      public void onTimeChanged(android.widget.TimePicker view, int hourOfDay, int minute)
      Angegeben von:
      onTimeChanged in Schnittstelle android.widget.TimePicker.OnTimeChangedListener
    • onSaveInstanceState

      public void onSaveInstanceState(android.os.Bundle outState)
      Setzt außer Kraft:
      onSaveInstanceState in Klasse androidx.fragment.app.DialogFragment
    • onResult

      protected android.os.Bundle onResult(int which)
      Beschreibung aus Klasse kopiert: CustomViewDialog
      Overwrite this method to provide additional results from your custom view to be passed to the SimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
      Setzt außer Kraft:
      onResult in Klasse CustomViewDialog<SimpleTimeDialog>
      Parameter:
      which - see SimpleDialog.OnDialogResultListener
      Gibt zurück:
      the bundle to merge with the results or null