次の方法で共有


ISurfaceHolder.SetSizeFromLayout Method

Definition

Allow the surface to resized based on layout of its container (this is the default).

[Android.Runtime.Register("setSizeFromLayout", "()V", "GetSetSizeFromLayoutHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetSizeFromLayout ();
[<Android.Runtime.Register("setSizeFromLayout", "()V", "GetSetSizeFromLayoutHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetSizeFromLayout : unit -> unit
Attributes

Remarks

Allow the surface to resized based on layout of its container (this is the default). When this is enabled, you should monitor Callback#surfaceChanged for changes to the size of the surface. When working with a SurfaceView, this must be called from the same thread running the SurfaceView's window.

Java documentation for android.view.SurfaceHolder.setSizeFromLayout().

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