語言

CursorTreeAdapter.NewGroupView(Context, ICursor, Boolean, ViewGroup) 方法

定義

建立一個新的群組視圖,以保存游標指向的群組資料。

[Android.Runtime.Register("newGroupView", "(Landroid/content/Context;Landroid/database/Cursor;ZLandroid/view/ViewGroup;)Landroid/view/View;", "GetNewGroupView_Landroid_content_Context_Landroid_database_Cursor_ZLandroid_view_ViewGroup_Handler")]
public abstract Android.Views.View? NewGroupView(Android.Content.Context? context, Android.Database.ICursor? cursor, bool isExpanded, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("newGroupView", "(Landroid/content/Context;Landroid/database/Cursor;ZLandroid/view/ViewGroup;)Landroid/view/View;", "GetNewGroupView_Landroid_content_Context_Landroid_database_Cursor_ZLandroid_view_ViewGroup_Handler")>]
abstract member NewGroupView : Android.Content.Context * Android.Database.ICursor * bool * Android.Views.ViewGroup -> Android.Views.View

參數

context
Context

介面至應用程式的全域資訊

cursor
ICursor

用來取得資料的群組游標。 游標已經移動到正確位置。

isExpanded
Boolean

是否該群體被擴展。

parent
ViewGroup

新視圖所附加的父節點

傳回

新創造的景色。

屬性

備註

建立一個新的群組視圖,以保存游標指向的群組資料。

Java 文件 android.widget.CursorTreeAdapter.newGroupView(android.content.Context, android.database.Cursor, boolean, android.view.ViewGroup)。

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

適用於