Share via


TvView.SetZOrderOnTop(Boolean) Method

Definition

Controls whether the TvView's surface is placed on top of its window.

[Android.Runtime.Register("setZOrderOnTop", "(Z)V", "GetSetZOrderOnTop_ZHandler", ApiSince=24)]
public virtual void SetZOrderOnTop (bool onTop);
[<Android.Runtime.Register("setZOrderOnTop", "(Z)V", "GetSetZOrderOnTop_ZHandler", ApiSince=24)>]
abstract member SetZOrderOnTop : bool -> unit
override this.SetZOrderOnTop : bool -> unit

Parameters

onTop
Boolean

true to be on top of its window, false otherwise.

Attributes

Remarks

Controls whether the TvView's surface is placed on top of its window. Normally it is placed behind the window, to allow it to (for the most part) appear to composite with the views in the hierarchy. By setting this, you cause it to be placed above the window. This means that none of the contents of the window this TvView is in will be visible on top of its surface.

Note that this must be set before the TvView's containing window is attached to the window manager.

Calling this overrides any previous call to #setZOrderMediaOverlay.

Java documentation for android.media.tv.TvView.setZOrderOnTop(boolean).

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