SurfaceControlViewHost.LayoutParams 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SurfaceControlViewHost.LayoutParams(IntPtr, JniHandleOwnership) | |
| SurfaceControlViewHost.LayoutParams(Int32, Int32, Boolean) |
建立一組新的版面配置參數。 |
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
參數
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
適用於
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 能接收關鍵輸入焦點。
- 屬性
備註
建立一組新的版面配置參數。 如果 focusable 設為 false,這個檢視永遠不會接收到按鍵輸入的對焦,因此使用者無法傳送按鍵或其他按鍵事件給它。 這些視窗會轉到目前聚焦的視窗。 若設定為 true,View 則可對焦。
Android 參考資料。android.view.SurfaceControlViewHost.LayoutParams.LayoutParams
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。