TextClock 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TextClock(Context) |
利用當前地點的預設模式建立新的時鐘。 |
| TextClock(Context, IAttributeSet) |
從 XML 膨脹後建立一個新的時鐘。 |
| TextClock(IntPtr, JniHandleOwnership) |
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。 |
| TextClock(Context, IAttributeSet, Int32) |
從 XML 膨脹後建立一個新的時鐘。 |
| TextClock(Context, IAttributeSet, Int32, Int32) |
利用當前地點的預設模式建立新的時鐘。 |
TextClock(Context)
利用當前地點的預設模式建立新的時鐘。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public TextClock(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.TextClock : Android.Content.Context -> Android.Widget.TextClock
參數
- context
- Context
視圖運行的上下文,透過它能存取當前主題、資源等。
- 屬性
備註
利用當前地點的預設模式建立新的時鐘。
Java 文件 android.widget.TextClock.TextClock(android.content.Context)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TextClock(Context, IAttributeSet)
從 XML 膨脹後建立一個新的時鐘。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public TextClock(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.TextClock : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.TextClock
參數
- context
- Context
視圖運行的上下文,透過它能存取當前主題、資源等。
- attrs
- IAttributeSet
膨脹視圖的 XML 標籤屬性
- 屬性
備註
從 XML 膨脹後建立一個新的時鐘。 此物件的屬性最初是根據 XML 中指定的屬性所設定。
此建構器使用預設的 0 型,因此僅套用上下文主題與給定屬性集的屬性值。
Java 文件 android.widget.TextClock.TextClock(android.content.Context, android.util.AttributeSet)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TextClock(IntPtr, JniHandleOwnership)
用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。
protected TextClock(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.TextClock : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.TextClock
參數
- transfer
- JniHandleOwnership
JniHandleOwnership,指出如何處理javaReference
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TextClock(Context, IAttributeSet, Int32)
從 XML 膨脹後建立一個新的時鐘。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public TextClock(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Widget.TextClock : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.TextClock
參數
- context
- Context
視圖運行的上下文,透過它能存取當前主題、資源等。
- attrs
- IAttributeSet
膨脹視圖的 XML 標籤屬性
- defStyleAttr
- Int32
目前主題中的一個屬性,包含對提供該視圖預設值的樣式資源的參考。 可以是0,不用找預設值。
- 屬性
備註
從 XML 膨脹後建立一個新的時鐘。 此物件的屬性最初是根據 XML 中指定的屬性所設定。
Java 文件 android.widget.TextClock.TextClock(android.content.Context, android.util.AttributeSet, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
TextClock(Context, IAttributeSet, Int32, Int32)
利用當前地點的預設模式建立新的時鐘。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public TextClock(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Widget.TextClock : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.TextClock
參數
- context
- Context
視圖運行的上下文,透過它能存取當前主題、資源等。
- attrs
- IAttributeSet
屬性則由 XML 提供。
- defStyleAttr
- Int32
目前主題中的一個屬性,提供預設的樣式值。
- defStyleRes
- Int32
一個提供預設風格值的資源。
- 屬性
備註
Java 文件 android.widget.TextClock.TextClock(android.content.Context)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。