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