Karthik
Karthik

Reputation: 5033

How to add a Image in a SurfaceView in a blinking image format in Android

I would like to add an Image to a SurfaceView and the image should blink at regular time intervals. I am able to add the image to the SurfaceView, but I am unable to make it blink. Please tell me a method for making image disappear after being been added to the SurfaceView.

Upvotes: 0

Views: 313

Answers (1)

Trevor
Trevor

Reputation: 10993

Use a Thread within your extended SurfaceView class to perform the animations you need. You should study the Lunar Lander example project, which demonstrates the concept very well.

Upvotes: 2

Related Questions