Android.Views.ISurfaceHolder.SetSizeFromLayout Method
Allow the surface to resized based on layout of its container (this is the default).

Syntax

[Android.Runtime.Register("setSizeFromLayout", "()V", "GetSetSizeFromLayoutHandler:Android.Views.ISurfaceHolderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetSizeFromLayout ()

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1