語言

ViewGroup.ChildrenDrawnWithCacheEnabled 屬性

定義

警告

deprecated

顯示 ViewGroup 目前是否正在使用其繪圖快取繪製子節點。

[System.Obsolete("deprecated")]
protected virtual bool ChildrenDrawnWithCacheEnabled { [Android.Runtime.Register("isChildrenDrawnWithCacheEnabled", "()Z", "GetIsChildrenDrawnWithCacheEnabledHandler")] get; [Android.Runtime.Register("setChildrenDrawnWithCacheEnabled", "(Z)V", "GetSetChildrenDrawnWithCacheEnabled_ZHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("isChildrenDrawnWithCacheEnabled", "()Z", "GetIsChildrenDrawnWithCacheEnabledHandler")>]
[<set: Android.Runtime.Register("setChildrenDrawnWithCacheEnabled", "(Z)V", "GetSetChildrenDrawnWithCacheEnabled_ZHandler")>]
member this.ChildrenDrawnWithCacheEnabled : bool with get, set

屬性值

若子節點應與其快取一起繪製,則為 false

屬性

備註

財產取得者文件:

顯示 ViewGroup 目前是否正在使用其繪圖快取繪製子節點。

此會員已被棄用。 自 起 android.os.Build.VERSION_CODES#M,這個性質被忽略了。 子視圖不再被父視圖強制快取其渲染狀態。 View#setLayerType(int, Paint)而是用在個別視角上。

Java 文件 android.view.ViewGroup.isChildrenDrawnWithCacheEnabled()。

屬性設定文件:

告訴 ViewGroup 使用他們的繪圖快取來繪製子節點。 當 為真時 #isAlwaysDrawnWithCacheEnabled() ,此性質會被忽略。 只有當子節點的繪圖快取已被啟用時才會被使用。

子類別在執行對效能敏感的操作(如捲動或動畫)時,應呼叫此方法以開始或停止繪圖快取。

此會員已被棄用。 自 起 android.os.Build.VERSION_CODES#M,這個性質被忽略了。 子視圖不再被父視圖強制快取其渲染狀態。 View#setLayerType(int, Paint)而是用在個別視角上。

Java 文件 android.view.ViewGroup.setChildrenDrawnWithCacheEnabled(boolean)。

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

適用於

另請參閱