共用方式為


TvInputService.Session.LayoutSurface(Int32, Int32, Int32, Int32) Method

Definition

Assigns a size and position to the surface passed in #onSetSurface.

[Android.Runtime.Register("layoutSurface", "(IIII)V", "GetLayoutSurface_IIIIHandler", ApiSince=23)]
public virtual void LayoutSurface (int left, int top, int right, int bottom);
[<Android.Runtime.Register("layoutSurface", "(IIII)V", "GetLayoutSurface_IIIIHandler", ApiSince=23)>]
abstract member LayoutSurface : int * int * int * int -> unit
override this.LayoutSurface : int * int * int * int -> unit

Parameters

left
Int32

Left position in pixels, relative to the overlay view.

top
Int32

Top position in pixels, relative to the overlay view.

right
Int32

Right position in pixels, relative to the overlay view.

bottom
Int32

Bottom position in pixels, relative to the overlay view.

Attributes

Remarks

Assigns a size and position to the surface passed in #onSetSurface. The position is relative to the overlay view that sits on top of this surface.

Java documentation for android.media.tv.TvInputService.Session.layoutSurface(int, int, int, int).

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