Share via


AutoCompleteTextView Constructors

Definition

Overloads

AutoCompleteTextView(Context)

Constructs a new auto-complete text view with the given context's theme.

AutoCompleteTextView(Context, IAttributeSet)

Constructs a new auto-complete text view with the given context's theme and the supplied attribute set.

AutoCompleteTextView(IntPtr, JniHandleOwnership)

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

AutoCompleteTextView(Context, IAttributeSet, Int32)

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default style attribute.

AutoCompleteTextView(Context, IAttributeSet, Int32, Int32)

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default styles.

AutoCompleteTextView(Context, IAttributeSet, Int32, Int32, Resources+Theme)

Constructs a new auto-complete text view with the given context's theme.

AutoCompleteTextView(Context)

Constructs a new auto-complete text view with the given context's theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public AutoCompleteTextView (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.AutoCompleteTextView : Android.Content.Context -> Android.Widget.AutoCompleteTextView

Parameters

context
Context

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

Attributes

Remarks

Constructs a new auto-complete text view with the given context's theme.

Java documentation for android.widget.AutoCompleteTextView.AutoCompleteTextView(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

AutoCompleteTextView(Context, IAttributeSet)

Constructs a new auto-complete text view with the given context's theme and the supplied attribute set.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public AutoCompleteTextView (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.AutoCompleteTextView : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.AutoCompleteTextView

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

Constructs a new auto-complete text view with the given context's theme and the supplied attribute set.

Java documentation for android.widget.AutoCompleteTextView.AutoCompleteTextView(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

AutoCompleteTextView(IntPtr, JniHandleOwnership)

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

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

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

AutoCompleteTextView(Context, IAttributeSet, Int32)

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default style attribute.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public AutoCompleteTextView (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.AutoCompleteTextView : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.AutoCompleteTextView

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

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default style attribute.

Java documentation for android.widget.AutoCompleteTextView.AutoCompleteTextView(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

AutoCompleteTextView(Context, IAttributeSet, Int32, Int32)

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default styles.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public AutoCompleteTextView (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.AutoCompleteTextView : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.AutoCompleteTextView

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.

defStyleRes
Int32

A resource identifier of a style resource that supplies default values for the view, used only if defStyleAttr is 0 or can not be found in the theme. Can be 0 to not look for defaults.

Attributes

Remarks

Constructs a new auto-complete text view with the given context's theme, the supplied attribute set, and default styles.

Java documentation for android.widget.AutoCompleteTextView.AutoCompleteTextView(android.content.Context, android.util.AttributeSet, int, 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

AutoCompleteTextView(Context, IAttributeSet, Int32, Int32, Resources+Theme)

Constructs a new auto-complete text view with the given context's theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;IILandroid/content/res/Resources$Theme;)V", "", ApiSince=24)]
public AutoCompleteTextView (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes, Android.Content.Res.Resources.Theme? popupTheme);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;IILandroid/content/res/Resources$Theme;)V", "", ApiSince=24)>]
new Android.Widget.AutoCompleteTextView : Android.Content.Context * Android.Util.IAttributeSet * int * int * Android.Content.Res.Resources.Theme -> Android.Widget.AutoCompleteTextView

Parameters

context
Context

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

defStyleAttr
Int32
defStyleRes
Int32
popupTheme
Resources.Theme
Attributes

Remarks

Java documentation for android.widget.AutoCompleteTextView.AutoCompleteTextView(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