I have actually.  I have an animation working using ValueAnimator, but it 
fades the color from white to blue.  I need this curtain effect, and I am 
not understanding from the documentation how to make that happen.

Here is the code which is successfully animating the color fade, but how do 
I make it change solidly from left to right:

        int colorFrom = getResources().getColor(R.color.white);
        int colorTo = getResources().getColor(R.color.blue);
        ValueAnimator colorAnimation = ValueAnimator.ofObject(new 
ArgbEvaluator(), colorFrom, colorTo);
        colorAnimation.addUpdateListener(new ValueAnimator.
AnimatorUpdateListener() {
            @Override
            public void onAnimationUpdate(ValueAnimator animator) {
                animator.setObjectValues();
                mSplashColorLayout.setBackgroundColor((int) animator.
getAnimatedValue());
            }
        });


        LinearInterpolator linearInterpolator = new LinearInterpolator();
        colorAnimation.setInterpolator(linearInterpolator);
        colorAnimation.setDuration(4000);
        colorAnimation.start();

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e5263b51-808b-43df-959d-b014ac9296ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to