com.bumptech.glide.request.animation.ViewPropertyAnimation Java Examples
The following examples show how to use
com.bumptech.glide.request.animation.ViewPropertyAnimation.
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: UsageExampleAnimate.java From android-tutorials-glide with MIT License | 6 votes |
private void loadImageAnimateCode() { ViewPropertyAnimation.Animator animationObject = new ViewPropertyAnimation.Animator() { @Override public void animate(View view) { view.setAlpha(0f); ObjectAnimator fadeAnim = ObjectAnimator.ofFloat(view, "alpha", 0f, 1f); fadeAnim.setDuration(2500); fadeAnim.start(); } }; Glide .with(context) .load(eatFoodyImages[1]) .animate(animationObject) .into(imageView2); }
Example #2
Source File: DrawableRequestBuilder.java From giffun with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public DrawableRequestBuilder<ModelType> animate(ViewPropertyAnimation.Animator animator) { super.animate(animator); return this; }
Example #3
Source File: GifRequestBuilder.java From giffun with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public GifRequestBuilder<ModelType> animate(ViewPropertyAnimation.Animator animator) { super.animate(animator); return this; }
Example #4
Source File: BitmapRequestBuilder.java From giffun with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public BitmapRequestBuilder<ModelType, TranscodeType> animate(ViewPropertyAnimation.Animator animator) { super.animate(animator); return this; }
Example #5
Source File: GenericRequestBuilder.java From giffun with Apache License 2.0 | 2 votes |
/** * Sets an animator to run a {@link android.view.ViewPropertyAnimator} on a view that the target may be wrapping * when a resource load finishes. Will only be run if the load was loaded asynchronously (ie was not in the * memory cache). * * @param animator The {@link ViewPropertyAnimation.Animator} to run. * @return This request builder. */ public GenericRequestBuilder<ModelType, DataType, ResourceType, TranscodeType> animate( ViewPropertyAnimation.Animator animator) { return animate(new ViewPropertyAnimationFactory<TranscodeType>(animator)); }