Is there a way to set the animation on a GLSurfaceView to fade from fully Opaque to 0 alpha transparency? I have the following code which does nothing:
AlphaAnimation anim = new AlphaAnimation(1f, 0f);
anim.setDuration (5000);
anim.setFillAfter(true);
glSurfaceView.startAnimation(anim);
I understand a SurfaceView doesn't normally behave like a normal View object so is this the right way to go about this? Is there another better way? Is it possible at all?
I know it's an old thread, but it's possible to fade in/out SurfaceView by placing blank view with black background on top of it. Then you just apply AlphaAnimation on this view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With