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());
}
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();
}
Aggregations