3

I want to animate the displaying and hiding of a VideoView.

My View is wrapped in a MediaController.

My code:

VideoView videoView = (VideoView) findViewById(R.id.myvideoview);
mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
videoView.setMediaController(mediaController);
videoView.setOnCompletionListener(myVideoViewCompletionListener);

I tried to animate with this:

Animation anim = AnimationUtils.loadAnimation(context, R.anim.my_anim);
videoview.startAnimation(anim);

I also tried to animate the MediaController but no luck so far.

I found just un- or not quite answered posts around the net.

Does anybody has an idea what I might be doing wrong?

Thanks.

Ron

ASP
  • 3,645
  • 1
  • 31
  • 45
Ron
  • 22,128
  • 31
  • 108
  • 206

0 Answers0