Hello,

i would animate a VideoView what scales up and switch then to fullscreen. 
My code looks like:

final VideoView videoView = (VideoView) findViewById(R.id.video_view);
final ObjectAnimator x = ObjectAnimator.ofFloat(this, "x", 0);
x.setTarget(videoView);
final ObjectAnimator y = ObjectAnimator.ofFloat(this, "y", 0);
y.setTarget(videoView);
final ObjectAnimator scaleX = ObjectAnimator.ofFloat(this, "scaleX", 2);
scaleX.setTarget(videoView);
final ObjectAnimator scaleY = ObjectAnimator.ofFloat(this, "scaleY", 2);
scaleY.setTarget(videoView);
final AnimatorSet set = new AnimatorSet();
set.setInterpolator(new LinearInterpolator());
set.setDuration(1000);
set.playTogether(x, y, scaleX, scaleY);

Unfortunately nothing happens. I am happy to read suggestions.

Thanks in advance
Daniel

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to