-
public final class PreDrawListenerCacheCache to store all unique listeners for all unique ViewTreeObservers
-
-
Constructor Summary
Constructors Constructor Description PreDrawListenerCache()
-
Method Summary
Modifier and Type Method Description final BooleantryRemoveViewFromDirtySet(View view)Function that tries to remove view from the cached Dirty set. final PreDrawListenergetPreDrawListener(View view)Provides a cached PreDrawListener or creates a new one. -
-
Method Detail
-
tryRemoveViewFromDirtySet
final Boolean tryRemoveViewFromDirtySet(View view)
Function that tries to remove view from the cached Dirty set.
-
getPreDrawListener
final PreDrawListener getPreDrawListener(View view)
Provides a cached PreDrawListener or creates a new one. If new PreDrawListener is created it automatically gets attached to to ViewTreeObserver and subscribes to root View onDetach to unsubscribe remove itself from the cache.
-
-
-
-