Share via


View.BringToFront Method

Definition

Change the view's z order in the tree, so it's on top of other sibling views.

[Android.Runtime.Register("bringToFront", "()V", "GetBringToFrontHandler")]
public virtual void BringToFront ();
[<Android.Runtime.Register("bringToFront", "()V", "GetBringToFrontHandler")>]
abstract member BringToFront : unit -> unit
override this.BringToFront : unit -> unit
Attributes

Remarks

Change the view's z order in the tree, so it's on top of other sibling views. This ordering change may affect layout, if the parent 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 the view's parent to force the parent to redraw with the new child ordering.

Java documentation for android.view.View.bringToFront().

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

See also