次の方法で共有


TextClock Constructors

Definition

Overloads

TextClock(Context)

Creates a new clock using the default patterns for the current locale.

TextClock(Context, IAttributeSet)

Creates a new clock inflated from XML.

TextClock(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

TextClock(Context, IAttributeSet, Int32)

Creates a new clock inflated from XML.

TextClock(Context, IAttributeSet, Int32, Int32)

Creates a new clock using the default patterns for the current locale.

TextClock(Context)

Creates a new clock using the default patterns for the current locale.

[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

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

Attributes

Remarks

Creates a new clock using the default patterns for the current locale.

Java documentation for android.widget.TextClock.TextClock(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextClock(Context, IAttributeSet)

Creates a new clock inflated from 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

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs
IAttributeSet

The attributes of the XML tag that is inflating the view

Attributes

Remarks

Creates a new clock inflated from XML. This object's properties are intialized from the attributes specified in XML.

This constructor uses a default style of 0, so the only attribute values applied are those in the Context's Theme and the given AttributeSet.

Java documentation for android.widget.TextClock.TextClock(android.content.Context, android.util.AttributeSet).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextClock(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected TextClock (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.TextClock : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.TextClock

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextClock(Context, IAttributeSet, Int32)

Creates a new clock inflated from 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

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs
IAttributeSet

The attributes of the XML tag that is inflating the view

defStyleAttr
Int32

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Attributes

Remarks

Creates a new clock inflated from XML. This object's properties are intialized from the attributes specified in XML.

Java documentation for android.widget.TextClock.TextClock(android.content.Context, android.util.AttributeSet, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextClock(Context, IAttributeSet, Int32, Int32)

Creates a new clock using the default patterns for the current locale.

[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

Parameters

context
Context

The Context the view is running in, through which it can access the current theme, resources, etc.

defStyleAttr
Int32
defStyleRes
Int32
Attributes

Remarks

Java documentation for android.widget.TextClock.TextClock(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to