語言

RotateAnimation 建構函式

定義

多載

名稱 Description
RotateAnimation(Context, IAttributeSet)

當從資源載入 RotateAnimation 時所使用的建構器。

RotateAnimation(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

RotateAnimation(Single, Single)

用來從程式碼建立 RotateAnimation 的建構器。

RotateAnimation(Single, Single, Single, Single)

用來從程式碼建立 RotateAnimation 的建構器

RotateAnimation(Single, Single, Dimension, Single, Dimension, Single)

用來從程式碼建立 RotateAnimation 的建構器

RotateAnimation(Context, IAttributeSet)

當從資源載入 RotateAnimation 時所使用的建構器。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public RotateAnimation(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Views.Animations.RotateAnimation : Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.Animations.RotateAnimation

參數

context
Context

應用上下文

attrs
IAttributeSet

讀取數值的屬性集合

屬性

備註

當從資源載入 RotateAnimation 時所使用的建構器。

的 android.view.animation.RotateAnimation.RotateAnimation(android.content.Context, android.util.AttributeSet)Java 檔。

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

適用於

RotateAnimation(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

protected RotateAnimation(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.Animations.RotateAnimation : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.Animations.RotateAnimation

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

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

適用於

RotateAnimation(Single, Single)

用來從程式碼建立 RotateAnimation 的建構器。

[Android.Runtime.Register(".ctor", "(FF)V", "")]
public RotateAnimation(float fromDegrees, float toDegrees);
[<Android.Runtime.Register(".ctor", "(FF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single -> Android.Views.Animations.RotateAnimation

參數

fromDegrees
Single

旋轉偏移在動畫開始時套用。

toDegrees
Single

旋轉偏移在動畫結束時套用。

屬性

備註

用來從程式碼建立 RotateAnimation 的建構器。 預設的 pivotX/pivotY 點是 (0,0)。

的 android.view.animation.RotateAnimation.RotateAnimation(float, float)Java 檔。

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

適用於

RotateAnimation(Single, Single, Single, Single)

用來從程式碼建立 RotateAnimation 的建構器

[Android.Runtime.Register(".ctor", "(FFFF)V", "")]
public RotateAnimation(float fromDegrees, float toDegrees, float pivotX, float pivotY);
[<Android.Runtime.Register(".ctor", "(FFFF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single * single * single -> Android.Views.Animations.RotateAnimation

參數

fromDegrees
Single

旋轉偏移在動畫開始時套用。

toDegrees
Single

旋轉偏移在動畫結束時套用。

pivotX
Single

物體旋轉點的 X 座標,以絕對數表示,0 為左邊。

pivotY
Single

物體旋轉點的 Y 座標,以絕對數表示,0 為上緣。

屬性

備註

用來從程式碼建立 RotateAnimation 的建構器

的 android.view.animation.RotateAnimation.RotateAnimation(float, float, float, float)Java 檔。

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

適用於

RotateAnimation(Single, Single, Dimension, Single, Dimension, Single)

用來從程式碼建立 RotateAnimation 的建構器

[Android.Runtime.Register(".ctor", "(FFIFIF)V", "")]
public RotateAnimation(float fromDegrees, float toDegrees, Android.Views.Animations.Dimension pivotXType, float pivotXValue, Android.Views.Animations.Dimension pivotYType, float pivotYValue);
[<Android.Runtime.Register(".ctor", "(FFIFIF)V", "")>]
new Android.Views.Animations.RotateAnimation : single * single * Android.Views.Animations.Dimension * single * Android.Views.Animations.Dimension * single -> Android.Views.Animations.RotateAnimation

參數

fromDegrees
Single

旋轉偏移在動畫開始時套用。

toDegrees
Single

旋轉偏移在動畫結束時套用。

pivotXType
Dimension

規定 pivotXValue 應如何解讀。 其中一種是 Animation.ABSOLUTE、Animation.RELATIVE_TO_SELF 或 Animation.RELATIVE_TO_PARENT。

pivotXValue
Single

物體旋轉點的 X 座標,以絕對數表示,0 為左邊。 如果 pivotXType 是絕對值,這個值可以是絕對數,否則可以是百分比(其中 1.0 是 100%)。

pivotYType
Dimension

規定 pivotYValue 應如何解讀。 其中一種是 Animation.ABSOLUTE、Animation.RELATIVE_TO_SELF 或 Animation.RELATIVE_TO_PARENT。

pivotYValue
Single

物體旋轉點的 Y 座標,以絕對數表示,0 為上緣。 若 pivotYType 是絕對值,這個值可以是絕對數;否則則是百分比(其中 1.0 是 100%)。

屬性

備註

用來從程式碼建立 RotateAnimation 的建構器

的 android.view.animation.RotateAnimation.RotateAnimation(float, float, int, float, int, float)Java 檔。

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

適用於