語言

View.AnimationMatrix 屬性

定義

回傳視圖的當前變換矩陣。 -或- 改變視圖上的轉換矩陣。

public virtual Android.Graphics.Matrix? AnimationMatrix { [Android.Runtime.Register("getAnimationMatrix", "()Landroid/graphics/Matrix;", "GetGetAnimationMatrixHandler", ApiSince=29)] get; [Android.Runtime.Register("setAnimationMatrix", "(Landroid/graphics/Matrix;)V", "GetSetAnimationMatrix_Landroid_graphics_Matrix_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getAnimationMatrix", "()Landroid/graphics/Matrix;", "GetGetAnimationMatrixHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setAnimationMatrix", "(Landroid/graphics/Matrix;)V", "GetSetAnimationMatrix_Landroid_graphics_Matrix_Handler", ApiSince=29)>]
member this.AnimationMatrix : Android.Graphics.Matrix with get, set

屬性值

矩陣 null 表示不存在變換

屬性

備註

財產取得者文件:

回傳視圖的當前變換矩陣。 這用於動畫框架,例如 android.transition.Transition。 當沒有 由 #setAnimationMatrix(Matrix)提供轉換時,返回 null 。 應用程式開發者應改用像 #setRotation(float)、 #setScaleX(float)、 、 #setTranslationX(float)#setScaleX(float)} 和 #setTranslationY(float) (float)}} 這類轉換方法。

的 android.view.View.getAnimationMatrix()Java 檔。

屬性設定文件:

改變視圖上的轉換矩陣。 這用於動畫框架,例如 android.transition.Transition。 動畫結束後,應透過呼叫此 null 方法,將矩陣參數作為矩陣來清除。 應用程式開發者應改用像 #setRotation(float)、 #setScaleX(float)、 、 #setTranslationX(float)#setScaleX(float)} 和 #setTranslationY(float) (float)}} 這類轉換方法。

的 android.view.View.setAnimationMatrix(android.graphics.Matrix)Java 檔。

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

適用於