Sdílet prostřednictvím


IExpandableListAdapter.GetChildView Method

Definition

Gets a View that displays the data for the given child within the given group.

[Android.Runtime.Register("getChildView", "(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetChildView_IIZLandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View? GetChildView (int groupPosition, int childPosition, bool isLastChild, Android.Views.View? convertView, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("getChildView", "(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetChildView_IIZLandroid_view_View_Landroid_view_ViewGroup_Handler:Android.Widget.IExpandableListAdapterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetChildView : int * int * bool * Android.Views.View * Android.Views.ViewGroup -> Android.Views.View

Parameters

groupPosition
Int32

the position of the group that contains the child

childPosition
Int32

the position of the child (for which the View is returned) within the group

isLastChild
Boolean

Whether the child is the last child within the group

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 #getChildView(int, int, boolean, View, ViewGroup).

parent
ViewGroup

the parent that this view will eventually be attached to

Returns

the View corresponding to the child at the specified position

Attributes

Remarks

Gets a View that displays the data for the given child within the given group.

Java documentation for android.widget.ExpandableListAdapter.getChildView(int, 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