SimpleAdapter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
參數
- 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 欄的值。
- 屬性
備註
建構函式
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。