SurfaceControlViewHost.LayoutParams Constructors
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 |
|---|---|
| SurfaceControlViewHost.LayoutParams(IntPtr, JniHandleOwnership) | |
| SurfaceControlViewHost.LayoutParams(Int32, Int32, Boolean) |
Creates a new set of layout parameters. |
SurfaceControlViewHost.LayoutParams(IntPtr, JniHandleOwnership)
protected LayoutParams(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.SurfaceControlViewHost.LayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.SurfaceControlViewHost.LayoutParams
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Applies to
SurfaceControlViewHost.LayoutParams(Int32, Int32, Boolean)
Creates a new set of layout parameters.
[Android.Runtime.Register(".ctor", "(IIZ)V", "", ApiSince=37)]
public LayoutParams(int width, int height, bool focusable);
[<Android.Runtime.Register(".ctor", "(IIZ)V", "", ApiSince=37)>]
new Android.Views.SurfaceControlViewHost.LayoutParams : int * int * bool -> Android.Views.SurfaceControlViewHost.LayoutParams
Parameters
- width
- Int32
The width, in pixels, of the bounds for the View.
- height
- Int32
The height, in pixels, of the bounds for the View.
- focusable
- Boolean
Whether the View can receive key input focus.
- Attributes
Remarks
Creates a new set of layout parameters. If focusable is set to false, this View won't ever get key input focus, so the user can not send key or other button events to it. Those will instead go to the current focused window. If set to true, View is focusable.
Android reference for android.view.SurfaceControlViewHost.LayoutParams.LayoutParams.
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.