View.BringToFront Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.