SurfaceControlViewHost.LayoutParams 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SurfaceControlViewHost.LayoutParams(IntPtr, JniHandleOwnership) |
创建表示现有Java对象的托管实例。 |
| SurfaceControlViewHost.LayoutParams(Int32, Int32, Boolean) |
创建一组新的布局参数。 |
SurfaceControlViewHost.LayoutParams(IntPtr, JniHandleOwnership)
创建表示现有Java对象的托管实例。
protected LayoutParams(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.SurfaceControlViewHost.LayoutParams : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.SurfaceControlViewHost.LayoutParams
参数
- javaReference
-
IntPtr
nativeint
对Java对象的 JNI 引用。
- transfer
- JniHandleOwnership
指定 JNI 引用的所有权是否传输到此实例。
注解
运行时调用此构造函数来创建现有Java对象的托管表示形式。
适用于
SurfaceControlViewHost.LayoutParams(Int32, Int32, Boolean)
创建一组新的布局参数。
[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
参数
- width
- Int32
边界的 View宽度(以像素为单位)。
- height
- Int32
边界的高度(以像素为单位 View)。
- focusable
- Boolean
是否可以 View 接收关键输入焦点。
- 属性
注解
创建一组新的布局参数。 如果可聚焦设置为 false,则此视图永远不会获得关键输入焦点,因此用户无法向其发送键或其他按钮事件。 相反,这些窗口将转到当前焦点窗口。 如果设置为 true,则视图可聚焦。
Android 参考。android.view.SurfaceControlViewHost.LayoutParams.LayoutParams
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。