語言

ViewGroup.AnimationCacheEnabled 屬性

定義

表示在版面動畫中是否使用兒童的繪圖快取;在版面動畫中啟用或停用兒童的繪圖快取。

public virtual bool AnimationCacheEnabled { [Android.Runtime.Register("isAnimationCacheEnabled", "()Z", "GetIsAnimationCacheEnabledHandler")] get; [Android.Runtime.Register("setAnimationCacheEnabled", "(Z)V", "GetSetAnimationCacheEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isAnimationCacheEnabled", "()Z", "GetIsAnimationCacheEnabledHandler")>]
[<set: Android.Runtime.Register("setAnimationCacheEnabled", "(Z)V", "GetSetAnimationCacheEnabled_ZHandler")>]
member this.AnimationCacheEnabled : bool with get, set

屬性值

若啟用動畫快取,則為 true;否則為 false

屬性

備註

財產取得者文件:

顯示兒童的繪圖快取是否在版面動畫中使用。 預設情況下,繪圖快取是啟用的,但這會阻止巢狀版面動畫運作。 要做巢狀動畫,你必須關閉快取。

此會員已被棄用。 自 起 android.os.Build.VERSION_CODES#M,這個性質被忽略了。 兒童的快取行為可透過 View#setLayerType(int, Paint)來控制。

Java 文件 android.view.ViewGroup.isAnimationCacheEnabled()

屬性設定文件:

在版面動畫中啟用或停用兒童的繪圖快取。 預設情況下,繪圖快取是啟用的,但這會阻止巢狀版面動畫運作。 要做巢狀動畫,你必須關閉快取。

此會員已被棄用。 自 起 android.os.Build.VERSION_CODES#M,這個性質被忽略了。 兒童的快取行為可透過 View#setLayerType(int, Paint)來控制。

Java 文件 android.view.ViewGroup.setAnimationCacheEnabled(boolean)

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

適用於

另請參閱