語言

SimpleAdapter 建構函式

定義

多載

名稱 Description
SimpleAdapter(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

SimpleAdapter(Context, IList<IDictionary<String,Object>>, Int32, String[], Int32[])

建構函式

SimpleAdapter(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleAdapter(Context, IList<IDictionary<String,Object>>, Int32, String[], Int32[])

建構函式

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[I)V", "")]
public SimpleAdapter(Android.Content.Context? context, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>? data, int resource, string[]? from, int[]? to);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[I)V", "")>]
new Android.Widget.SimpleAdapter : Android.Content.Context * System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>> * int * string[] * int[] -> Android.Widget.SimpleAdapter

參數

context
Context

與此 SimpleAdapter 相關聯的檢視所執行的上下文

data
IList<IDictionary<String,Object>>

地圖列表。 清單中的每個項目對應於列表中的一列。 映射包含每一列的資料,並應包含「from」中指定的所有條目

resource
Int32

定義此清單項目視圖的視圖配置的資源識別碼。 版面檔案至少應包含「to」中定義的命名視圖

from
String[]

列出欄位名稱,將加入地圖中,與每個項目相關聯。

to
Int32[]

應該在「from」參數中顯示欄位的視圖。 這些都應該是 TextViews。 此列表中前 N 個視圖為 from 參數中前 N 欄的值。

屬性

備註

建構函式

Java 文件 android.widget.SimpleAdapter.SimpleAdapter(android.content.Context, java.util.List<? extends java.util.Map<java.lang.String, ?>>, int, java.lang.String[], int[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於