語言

ISurfaceHolder.SetFixedSize(Int32, Int32) 方法

定義

讓表面尺寸固定。

[Android.Runtime.Register("setFixedSize", "(II)V", "GetSetFixedSize_IIHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetFixedSize(int width, int height);
[<Android.Runtime.Register("setFixedSize", "(II)V", "GetSetFixedSize_IIHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetFixedSize : int * int -> unit

參數

width
Int32

表面的寬度。

height
Int32

地表高度。

屬性

備註

讓表面尺寸固定。 這個尺寸永遠不會改變。 當使用 時 SurfaceView,必須從執行 SurfaceView 視窗的同一個執行緒呼叫此項。

Java 文件 android.view.SurfaceHolder.setFixedSize(int, int)。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於