ArrayAdapter<T> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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 值。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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
JniHandleOwnershipA 指示如何處理handle
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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>
清單:要在清單檢視中表示的物件。 此值不可能是空值。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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[]
這個介面卡所代表的物件。
- 屬性
備註
陣列用作固定大小的後盾集合;不支援新增或移除轉接器項目的操作。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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>
這個介面卡所代表的物件。
- 屬性
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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[]
這個介面卡所代表的物件。
- 屬性
備註
陣列用作固定大小的後盾集合;不支援新增或移除轉接器項目的操作。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。