語言

TvInteractiveAppService.Session.LayoutSurface 方法

定義

為通過的 #onSetSurface曲面指派大小與位置。

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

參數

left
Int32

相對於疊加視圖的左側像素位置。

top
Int32

相對於疊加圖的像素數最高位置。

right
Int32

相對於疊加視圖的像素數,正確的位置。

bottom
Int32

相對於疊加視圖的底部像素位置。

屬性

備註

為通過的 #onSetSurface曲面指派大小與位置。 該位置相對於位於該表面上方的疊加視圖。

Java 文件 android.media.tv.interactive.TvInteractiveAppService.Session.layoutSurface(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於