Search in sources :

Example 21 with GenericDraweeHierarchy

use of com.facebook.drawee.generic.GenericDraweeHierarchy in project Rocket.Chat.Android by RocketChat.

the class FrescoHelper method setupDrawee.

public static void setupDrawee(SimpleDraweeView draweeView) {
    final GenericDraweeHierarchy hierarchy = draweeView.getHierarchy();
    hierarchy.setPlaceholderImage(VectorDrawableCompat.create(draweeView.getResources(), R.drawable.image_dummy, null));
    hierarchy.setFailureImage(VectorDrawableCompat.create(draweeView.getResources(), R.drawable.image_error, null));
    hierarchy.setProgressBarImage(new ProgressBarDrawable());
}
Also used : ProgressBarDrawable(com.facebook.drawee.drawable.ProgressBarDrawable) GenericDraweeHierarchy(com.facebook.drawee.generic.GenericDraweeHierarchy)

Example 22 with GenericDraweeHierarchy

use of com.facebook.drawee.generic.GenericDraweeHierarchy in project react-native-navigation by wix.

the class SharedElementTransition method setMatrixTransform.

@Keep
public void setMatrixTransform(float value) {
    GenericDraweeHierarchy hierarchy = ((DraweeView<GenericDraweeHierarchy>) child).getHierarchy();
    ((ScalingUtils.InterpolatingScaleType) hierarchy.getActualImageScaleType()).setValue(value);
    child.invalidate();
}
Also used : GenericDraweeHierarchy(com.facebook.drawee.generic.GenericDraweeHierarchy) DraweeView(com.facebook.drawee.view.DraweeView) Keep(android.support.annotation.Keep)

Aggregations

GenericDraweeHierarchy (com.facebook.drawee.generic.GenericDraweeHierarchy)22 GenericDraweeHierarchyBuilder (com.facebook.drawee.generic.GenericDraweeHierarchyBuilder)11 RoundingParams (com.facebook.drawee.generic.RoundingParams)5 ProgressBarDrawable (com.facebook.drawee.drawable.ProgressBarDrawable)4 DraweeController (com.facebook.drawee.interfaces.DraweeController)4 Uri (android.net.Uri)3 ResizeOptions (com.facebook.imagepipeline.common.ResizeOptions)3 ImageRequest (com.facebook.imagepipeline.request.ImageRequest)3 Canvas (android.graphics.Canvas)2 PointF (android.graphics.PointF)2 Drawable (android.graphics.drawable.Drawable)2 InstrumentedDraweeView (com.facebook.samples.comparison.instrumentation.InstrumentedDraweeView)2 InstrumentedDraweeView (com.facebook.samples.scrollperf.instrumentation.InstrumentedDraweeView)2 ObjectAnimator (android.animation.ObjectAnimator)1 Context (android.content.Context)1 Resources (android.content.res.Resources)1 Animatable (android.graphics.drawable.Animatable)1 Keep (android.support.annotation.Keep)1 Nullable (android.support.annotation.Nullable)1 RecyclerView (android.support.v7.widget.RecyclerView)1