The user is presented with a dark surface. When they click on it, a white circle is displayed. This represents a wall shone at with a spotlight. Touching the surface, hides an Aandroid image. The light cone then follows continuous motion. If the image of an android is discovered, the screen lights up. To restart, lift your finger and touch screen again.
This app demonstrates how to use Paint with a BitmapShader to fill the spotlight circle with a Bitmap instead of a simple color.
You need to know:
- Create apps with Android Studio and run them on a mobile device.
- Create a custom view.
- Draw on a Canvas.
- Add event handlers to views.
- Download and run the app.