IExpandableListAdapter.GetGroupView(Int32, Boolean, View, ViewGroup) Method

Definition

Gets a View that displays the given group.

[Android.Runtime.Register("getGroupView", "(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetGroupView_IZLandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View? GetGroupView (int groupPosition, bool isExpanded, Android.Views.View? convertView, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("getGroupView", "(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetGroupView_IZLandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetGroupView : int * bool * Android.Views.View * Android.Views.ViewGroup -> Android.Views.View

Parameters

groupPosition
Int32

the position of the group for which the View is returned

isExpanded
Boolean

whether the group is expanded or collapsed

convertView
View

the old view to reuse, if possible. You should check that this view is non-null and of an appropriate type before using. If it is not possible to convert this view to display the correct data, this method can create a new view. It is not guaranteed that the convertView will have been previously created by #getGroupView(int, boolean, View, ViewGroup).

parent
ViewGroup

the parent that this view will eventually be attached to

Returns

the View corresponding to the group at the specified position

Attributes

Remarks

Gets a View that displays the given group. This View is only for the group--the Views for the group's children will be fetched using #getChildView(int, int, boolean, View, ViewGroup).

Java documentation for android.widget.ExpandableListAdapter.getGroupView(int, boolean, android.view.View, android.view.ViewGroup).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to