ArrayAdapter<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ArrayAdapter<T>(Context, Int32) |
构造函数 |
| ArrayAdapter<T>(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| ArrayAdapter<T>(Context, Int32, IList<T>) |
构造函数 |
| ArrayAdapter<T>(Context, Int32, Int32) |
构造函数 |
| ArrayAdapter<T>(Context, Int32, T[]) |
创建由提供的数组支持的适配器。 |
| ArrayAdapter<T>(Context, Int32, Int32, IList<T>) |
创建由提供的列表和项布局支持的适配器。 |
| ArrayAdapter<T>(Context, Int32, Int32, T[]) |
创建由提供的数组和项布局支持的适配器。 |
ArrayAdapter<T>(Context, Int32)
构造函数
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- textViewResourceId
- Int32
文本视图资源 ID 值。
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
public ArrayAdapter(IntPtr handle, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.ArrayAdapter<'T> : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.ArrayAdapter<'T>
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 handle
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(Context, Int32, IList<T>)
构造函数
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId, System.Collections.Generic.IList<T> objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * System.Collections.Generic.IList<'T> -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- textViewResourceId
- Int32
int:要填充的布局资源中的 TextView 的 ID
- objects
- IList<T>
列表:要表示在 ListView 中的对象。 此值不能为 null。
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(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<'T> : Android.Content.Context * int * int -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- resource
- Int32
int:包含在实例化视图时要使用的布局的布局文件的资源 ID。
- textViewResourceId
- Int32
int:要填充的布局资源中的 TextView 的 ID
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(Context, Int32, T[])
创建由提供的数组支持的适配器。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId, T[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * 'T[] -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- textViewResourceId
- Int32
int:要填充的布局资源中的 TextView 的 ID
- objects
- T[]
此适配器表示的对象。
- 属性
注解
数组用作固定大小的后盾集合;不支持添加或删除适配器项的操作。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(Context, Int32, Int32, IList<T>)
创建由提供的列表和项布局支持的适配器。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, System.Collections.Generic.IList<T> objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * int * System.Collections.Generic.IList<'T> -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- resource
- Int32
int:包含在实例化视图时要使用的布局的布局文件的资源 ID。
- textViewResourceId
- Int32
int:要填充的布局资源中的 TextView 的 ID
- objects
- IList<T>
此适配器表示的对象。
- 属性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ArrayAdapter<T>(Context, Int32, Int32, T[])
创建由提供的数组和项布局支持的适配器。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, T[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * int * 'T[] -> Android.Widget.ArrayAdapter<'T>
参数
- context
- Context
上下文:当前上下文。
- resource
- Int32
int:包含在实例化视图时要使用的布局的布局文件的资源 ID。
- textViewResourceId
- Int32
int:要填充的布局资源中的 TextView 的 ID
- objects
- T[]
此适配器表示的对象。
- 属性
注解
数组用作固定大小的后盾集合;不支持添加或删除适配器项的操作。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。