語言

SurfaceControl.Transaction.Reparent(SurfaceControl, SurfaceControl) 方法

定義

將某一層重新親屬給新手父母。 子節點繼承父節點的變換(位置、縮放)、裁切、可見度與 Z 排序,就像子節點是父 Surface 中的像素一樣。

[Android.Runtime.Register("reparent", "(Landroid/view/SurfaceControl;Landroid/view/SurfaceControl;)Landroid/view/SurfaceControl$Transaction;", "GetReparent_Landroid_view_SurfaceControl_Landroid_view_SurfaceControl_Handler", ApiSince=29)]
public virtual Android.Views.SurfaceControl.Transaction Reparent(Android.Views.SurfaceControl sc, Android.Views.SurfaceControl? newParent);
[<Android.Runtime.Register("reparent", "(Landroid/view/SurfaceControl;Landroid/view/SurfaceControl;)Landroid/view/SurfaceControl$Transaction;", "GetReparent_Landroid_view_SurfaceControl_Landroid_view_SurfaceControl_Handler", ApiSince=29)>]
abstract member Reparent : Android.Views.SurfaceControl * Android.Views.SurfaceControl -> Android.Views.SurfaceControl.Transaction
override this.Reparent : Android.Views.SurfaceControl * Android.Views.SurfaceControl -> Android.Views.SurfaceControl.Transaction

參數

sc
SurfaceControl

用於 sc. 的 Android.Views.SurfaceControl 值。

newParent
SurfaceControl

新父用的 Android.Views.SurfaceControl 值。

傳回

這是重父操作的結果。

屬性

備註

詳情請參閱 android.view.SurfaceControl.Transaction.reparent 的 Android 參考文件。

android.view.SurfaceControl.Transaction.reparent 的 Java 文件。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於