SurfaceControlViewHost.SetView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetView(View, SurfaceControlViewHost+LayoutParams) |
Sets the root view of the SurfaceControlViewHost. |
| SetView(View, Int32, Int32) |
Set the root view of the SurfaceControlViewHost. |
SetView(View, SurfaceControlViewHost+LayoutParams)
Sets the root view of the SurfaceControlViewHost.
[Android.Runtime.Register("setView", "(Landroid/view/View;Landroid/view/SurfaceControlViewHost$LayoutParams;)V", "GetSetView_Landroid_view_View_Landroid_view_SurfaceControlViewHost_LayoutParams_Handler", ApiSince=37)]
public virtual void SetView(Android.Views.View view, Android.Views.SurfaceControlViewHost.LayoutParams attrs);
[<Android.Runtime.Register("setView", "(Landroid/view/View;Landroid/view/SurfaceControlViewHost$LayoutParams;)V", "GetSetView_Landroid_view_View_Landroid_view_SurfaceControlViewHost_LayoutParams_Handler", ApiSince=37)>]
abstract member SetView : Android.Views.View * Android.Views.SurfaceControlViewHost.LayoutParams -> unit
override this.SetView : Android.Views.View * Android.Views.SurfaceControlViewHost.LayoutParams -> unit
Parameters
- view
- View
The View to add. This value cannot be null.
The LayoutParams parameters for the View. This value cannot be null.
- Attributes
Remarks
Sets the root view of the SurfaceControlViewHost. This view will render in to the SurfaceControl, and receive input based on the SurfaceControl's positioning on screen. It will be laid out as if it were in a window of the passed in width and height.
Android reference for android.view.SurfaceControlViewHost.setView.
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
SetView(View, Int32, Int32)
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.