Java 类com.bumptech.glide.request.animation.ViewPropertyAnimation 实例源码

项目:android-tutorials-glide    文件:UsageExampleAnimate.java   
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);
}
项目:GlidePlus    文件:GlidePlus.java   
public GlidePlus animate(ViewPropertyAnimation.Animator animator) {
    mRequestBuilder.animate(animator);
    return this;
}