次の方法で共有


ViewGroup.IndexOfChild(View) Method

Definition

Returns the position in the group of the specified child view.

[Android.Runtime.Register("indexOfChild", "(Landroid/view/View;)I", "GetIndexOfChild_Landroid_view_View_Handler")]
public virtual int IndexOfChild (Android.Views.View? child);
[<Android.Runtime.Register("indexOfChild", "(Landroid/view/View;)I", "GetIndexOfChild_Landroid_view_View_Handler")>]
abstract member IndexOfChild : Android.Views.View -> int
override this.IndexOfChild : Android.Views.View -> int

Parameters

child
View

the view for which to get the position

Returns

a positive integer representing the position of the view in the group, or -1 if the view does not exist in the group

Attributes

Remarks

Returns the position in the group of the specified child view.

Java documentation for android.view.ViewGroup.indexOfChild(android.view.View).

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