Share via


SurfaceControlViewHost.SetView(View, Int32, Int32) Method

Definition

Set the root view of the SurfaceControlViewHost.

[Android.Runtime.Register("setView", "(Landroid/view/View;II)V", "GetSetView_Landroid_view_View_IIHandler", ApiSince=30)]
public virtual void SetView (Android.Views.View view, int width, int height);
[<Android.Runtime.Register("setView", "(Landroid/view/View;II)V", "GetSetView_Landroid_view_View_IIHandler", ApiSince=30)>]
abstract member SetView : Android.Views.View * int * int -> unit
override this.SetView : Android.Views.View * int * int -> unit

Parameters

view
View

The View to add

width
Int32

The width to layout the View within, in pixels.

height
Int32

The height to layout the View within, in pixels.

Attributes

Remarks

Set the root view of the SurfaceControlViewHost. This view will render in to the SurfaceControl, and receive input based on the SurfaceControls positioning on screen. It will be laid as if it were in a window of the passed in width and height.

Java documentation for android.view.SurfaceControlViewHost.setView(android.view.View, 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