ArrayAdapter 构造函数

定义

重载

名称 说明
ArrayAdapter(Context, Int32)

构造函数

ArrayAdapter(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

ArrayAdapter(Context, Int32, Object[])

构造 函数。

ArrayAdapter(Context, Int32, IList)

构造函数

ArrayAdapter(Context, Int32, Int32)

构造函数

ArrayAdapter(Context, Int32, Int32, Object[])

构造 函数。

ArrayAdapter(Context, Int32, Int32, IList)

构造函数

ArrayAdapter(Context, Int32)

构造函数

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的 TextView。

属性

注解

构造函数

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

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

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(Context, Int32, Object[])

构造 函数。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, Java.Lang.Object[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * Java.Lang.Object[] -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的 TextView。

objects
Object[]

在 ListView 中表示的对象。

属性

注解

构造 函数。 此构造函数将导致基础数据收集不可变,因此诸如 #clear() 此类方法将引发异常。

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, T[])

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(Context, Int32, IList)

构造函数

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, System.Collections.IList objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * System.Collections.IList -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的 TextView。

objects
IList

在 ListView 中表示的对象。

属性

注解

构造函数

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, java.util.List<T>)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(Context, Int32, Int32)

构造函数

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的布局。

textViewResourceId
Int32

要填充的布局资源中的 TextView 的 ID

属性

注解

构造函数

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(Context, Int32, Int32, Object[])

构造 函数。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, Java.Lang.Object[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int * Java.Lang.Object[] -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的布局。

textViewResourceId
Int32

要填充的布局资源中的 TextView 的 ID

objects
Object[]

在 ListView 中表示的对象。

属性

注解

构造 函数。 此构造函数将导致基础数据收集不可变,因此诸如 #clear() 此类方法将引发异常。

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int, T[])

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ArrayAdapter(Context, Int32, Int32, IList)

构造函数

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, System.Collections.IList objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int * System.Collections.IList -> Android.Widget.ArrayAdapter

参数

context
Context

当前上下文。

resource
Int32

布局文件的资源 ID,其中包含在实例化视图时要使用的布局。

textViewResourceId
Int32

要填充的布局资源中的 TextView 的 ID

objects
IList

在 ListView 中表示的对象。

属性

注解

构造函数

Java文档android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int, java.util.List<T>)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于