com.facebook.drawable.base.DrawableWithCaches Java Examples
The following examples show how to use
com.facebook.drawable.base.DrawableWithCaches.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DraweeSpan.java From drawee-text-view with Apache License 2.0 | 5 votes |
void releaseDrawable(@Nullable Drawable drawable) { if (drawable instanceof Animatable && ((Animatable) drawable).isRunning()) { ((Animatable) drawable).stop(); } if (drawable instanceof DrawableWithCaches) { ((DrawableWithCaches) drawable).dropCaches(); } }
Example #2
Source File: PipelineDraweeController.java From FanXin-based-HuanXin with GNU General Public License v2.0 | 4 votes |
@Override protected void releaseDrawable(@Nullable Drawable drawable) { if (drawable instanceof DrawableWithCaches) { ((DrawableWithCaches) drawable).dropCaches(); } }
Example #3
Source File: PipelineDraweeController.java From fresco with MIT License | 4 votes |
@Override protected void releaseDrawable(@Nullable Drawable drawable) { if (drawable instanceof DrawableWithCaches) { ((DrawableWithCaches) drawable).dropCaches(); } }