Partager via


IViewParent.BringChildToFront(View) Method

Definition

Change the z order of the child so it's on top of all other children.

[Android.Runtime.Register("bringChildToFront", "(Landroid/view/View;)V", "GetBringChildToFront_Landroid_view_View_Handler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void BringChildToFront (Android.Views.View? child);
[<Android.Runtime.Register("bringChildToFront", "(Landroid/view/View;)V", "GetBringChildToFront_Landroid_view_View_Handler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member BringChildToFront : Android.Views.View -> unit

Parameters

child
View

The child to bring to the top of the z order

Attributes

Remarks

Change the z order of the child so it's on top of all other children. This ordering change may affect layout, if this container uses an order-dependent layout scheme (e.g., LinearLayout). Prior to android.os.Build.VERSION_CODES#KITKAT this method should be followed by calls to #requestLayout() and View#invalidate() on this parent to force the parent to redraw with the new child ordering.

Java documentation for android.view.ViewParent.bringChildToFront(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