語言

WindowInsetsAnimation.Callback.OnProgress 方法

定義

當內嵌在執行動畫時改變時會被呼叫。

[Android.Runtime.Register("onProgress", "(Landroid/view/WindowInsets;Ljava/util/List;)Landroid/view/WindowInsets;", "GetOnProgress_Landroid_view_WindowInsets_Ljava_util_List_Handler", ApiSince=30)]
public abstract Android.Views.WindowInsets OnProgress(Android.Views.WindowInsets insets, System.Collections.Generic.IList<Android.Views.WindowInsetsAnimation> runningAnimations);
[<Android.Runtime.Register("onProgress", "(Landroid/view/WindowInsets;Ljava/util/List;)Landroid/view/WindowInsets;", "GetOnProgress_Landroid_view_WindowInsets_Ljava_util_List_Handler", ApiSince=30)>]
abstract member OnProgress : Android.Views.WindowInsets * System.Collections.Generic.IList<Android.Views.WindowInsetsAnimation> -> Android.Views.WindowInsets

參數

insets
WindowInsets

目前的內頁。

runningAnimations
IList<WindowInsetsAnimation>

目前正在播放的動畫。

傳回

這些插入詞要派遣到階層的子樹。

屬性

備註

當內嵌在執行動畫時改變時會被呼叫。 請注意,即使同時執行多個不同類型的動畫,每幀也只會有一個進度回撥。 作為參數, insets 傳遞代表整體狀態,並包含所有類型,不論是否在動態中。

請注意,內嵌派遣是階層式的:它會從視圖階層的根開始,然後遍歷該層級並呼叫被穿越的特定 View 對象的回調。 該方法可能會呼叫修改後的實例 WindowInsets#inset(int, int, int, int) ,表示插入部分已被用來偏移或裁剪子節點,子節點不必再擔心該部分。 此外,若返回 #getDispatchMode()#DISPATCH_MODE_STOP,該視圖的子節點將不再接收回調。

Java 文件 android.view.WindowInsetsAnimation.Callback.onProgress(android.view.WindowInsets, java.util.List<android.view.WindowInsetsAnimation>)

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

適用於