TimePickerDialog 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TimePickerDialog(IntPtr, JniHandleOwnership)
初始化現有 Java 原生介面物件的受管理表示。
protected TimePickerDialog(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.TimePickerDialog : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.TimePickerDialog
參數
- javaReference
-
IntPtr
nativeint
Java 原生介面物件參考。
- transfer
- JniHandleOwnership
所有權轉移應用於 Java 原生介面物件參考。
備註
當 .NET 為 Android 綁定執行時建立一個受管理的 Java 物件時,會呼叫這個建構子。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TimePickerDialog(Context, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)
建立一個新的時間選擇器對話框。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")]
public TimePickerDialog(Android.Content.Context? context, Android.App.TimePickerDialog.IOnTimeSetListener? listener, int hourOfDay, int minute, bool is24HourView);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")>]
new Android.App.TimePickerDialog : Android.Content.Context * Android.App.TimePickerDialog.IOnTimeSetListener * int * int * bool -> Android.App.TimePickerDialog
參數
- context
- Context
情境:父語境
- listener
- TimePickerDialog.IOnTimeSetListener
TimePickerDialog.OnTimeSetListener:時間設定時要呼叫的監聽者
- hourOfDay
- Int32
內力:最初一小時
- minute
- Int32
智力:最初的一分鐘
- is24HourView
- Boolean
布林值:不管是 24 小時視角還是 AM/PM
- 屬性
備註
建立一個新的時間選擇器對話框。
Android 參考資料。android.app.TimePickerDialog.TimePickerDialog
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TimePickerDialog(Context, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)
public TimePickerDialog(Android.Content.Context context, EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> callBack, int hourOfDay, int minute, bool is24HourView);
new Android.App.TimePickerDialog : Android.Content.Context * EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> * int * int * bool -> Android.App.TimePickerDialog
參數
- context
- Context
- hourOfDay
- Int32
- minute
- Int32
- is24HourView
- Boolean
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TimePickerDialog(Context, Int32, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)
建立一個新的時間選擇器對話框,並搭配指定的主題。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")]
public TimePickerDialog(Android.Content.Context? context, int themeResId, Android.App.TimePickerDialog.IOnTimeSetListener? listener, int hourOfDay, int minute, bool is24HourView);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")>]
new Android.App.TimePickerDialog : Android.Content.Context * int * Android.App.TimePickerDialog.IOnTimeSetListener * int * int * bool -> Android.App.TimePickerDialog
參數
- context
- Context
情境:父語境
- themeResId
- Int32
int:用於此對話的主題資源 ID
- listener
- TimePickerDialog.IOnTimeSetListener
TimePickerDialog.OnTimeSetListener:時間設定時要呼叫的監聽者
- hourOfDay
- Int32
內力:最初一小時
- minute
- Int32
智力:最初的一分鐘
- is24HourView
- Boolean
布林值:不論是24小時視角,還是早晚。
- 屬性
備註
建立一個新的時間選擇器對話框,並搭配指定的主題。 主題會疊加在父上下文的主題之上。 如果 themeResID 為 0,對話會依據父上下文主題中 android:timePickerDialogTheme 屬性指定的主題來膨脹。
Android 參考資料。android.app.TimePickerDialog.TimePickerDialog
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TimePickerDialog(Context, Int32, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)
public TimePickerDialog(Android.Content.Context context, int theme, EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> callBack, int hourOfDay, int minute, bool is24HourView);
new Android.App.TimePickerDialog : Android.Content.Context * int * EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> * int * int * bool -> Android.App.TimePickerDialog
參數
- context
- Context
- theme
- Int32
- hourOfDay
- Int32
- minute
- Int32
- is24HourView
- Boolean
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。