語言

ActivityOptions.MakeCustomAnimation 方法

定義

多載

名稱 Description
MakeCustomAnimation(Context, Int32, Int32)

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

MakeCustomAnimation(Context, Int32, Int32, Int32)

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

MakeCustomAnimation(Context, Int32, Int32)

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

[Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;II)Landroid/app/ActivityOptions;", "")]
public static Android.App.ActivityOptions? MakeCustomAnimation(Android.Content.Context? context, int enterResId, int exitResId);
[<Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;II)Landroid/app/ActivityOptions;", "")>]
static member MakeCustomAnimation : Android.Content.Context * int * int -> Android.App.ActivityOptions

參數

context
Context

誰在定義這一切? 這就是動畫資源會載入的應用程式。

enterResId
Int32

一個用於接收活動的動畫資源的資源 ID。 用 0 表示不做動畫。

exitResId
Int32

一個用於外出活動的動畫資源的資源 ID。 用 0 表示不做動畫。

傳回

回傳一個新的 ActivityOptions 物件,你可以用它作為選項包在啟動活動時提供這些選項。

屬性

備註

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

Android 參考資料。android.app.ActivityOptions.makeCustomAnimation

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

MakeCustomAnimation(Context, Int32, Int32, Int32)

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

[Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;III)Landroid/app/ActivityOptions;", "", ApiSince=33)]
public static Android.App.ActivityOptions MakeCustomAnimation(Android.Content.Context context, int enterResId, int exitResId, int backgroundColor);
[<Android.Runtime.Register("makeCustomAnimation", "(Landroid/content/Context;III)Landroid/app/ActivityOptions;", "", ApiSince=33)>]
static member MakeCustomAnimation : Android.Content.Context * int * int * int -> Android.App.ActivityOptions

參數

context
Context

誰在定義這一切? 這就是動畫資源會載入的應用程式。

enterResId
Int32

一個用於接收活動的動畫資源的資源 ID。 用 0 表示不做動畫。

exitResId
Int32

一個用於外出活動的動畫資源的資源 ID。 用 0 表示不做動畫。

backgroundColor
Int32

如果動畫需要背景,該用來做背景色。 設為 0 以避免覆蓋預設顏色。

傳回

回傳一個新的 ActivityOptions 物件,你可以用它作為選項包在啟動活動時提供這些選項。

屬性

備註

建立一個 ActivityOptions,指定在活動顯示時執行的自訂動畫。

Android 參考資料。android.app.ActivityOptions.makeCustomAnimation

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於