ArrayAdapter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ArrayAdapter(Context, Int32) |
建構函式 |
| ArrayAdapter(IntPtr, JniHandleOwnership) |
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。 |
| 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
配置檔的資源標識碼,其中包含具現化檢視時要使用的 TextView。
- 屬性
備註
建構函式
的 android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
ArrayAdapter(IntPtr, JniHandleOwnership)
建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。
protected ArrayAdapter(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.ArrayAdapter : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.ArrayAdapter
參數
- transfer
- JniHandleOwnership
JniHandleOwnership,指出如何處理javaReference
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
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
配置檔的資源標識碼,其中包含具現化檢視時要使用的 TextView。
- objects
- Object[]
要顯示在 ListView 中的物件。
- 屬性
備註
建構函式。 此建構函式會導致基礎數據收集不可變,因此 這類 #clear() 方法會擲回例外狀況。
的 android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, T[])Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
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
配置檔的資源標識碼,其中包含具現化檢視時要使用的 TextView。
- objects
- IList
要顯示在 ListView 中的物件。
- 屬性
備註
建構函式
的 android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, java.util.List<T>)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
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
配置檔案的資源識別碼,其中包含具現化檢視時要使用的配置。
- textViewResourceId
- Int32
要填入之版面配置資源內的 TextView 識別符
- 屬性
備註
建構函式
的 android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
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
配置檔案的資源識別碼,其中包含具現化檢視時要使用的配置。
- textViewResourceId
- Int32
要填入之版面配置資源內的 TextView 識別符
- objects
- Object[]
要顯示在 ListView 中的物件。
- 屬性
備註
建構函式。 此建構函式會導致基礎數據收集不可變,因此 這類 #clear() 方法會擲回例外狀況。
的 android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int, T[])Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
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
配置檔案的資源識別碼,其中包含具現化檢視時要使用的配置。
- textViewResourceId
- Int32
要填入之版面配置資源內的 TextView 識別符
- objects
- IList
要顯示在 ListView 中的物件。
- 屬性
備註
建構函式
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。