To Examples
Drawing2 Example
Goal
- This example is similar to Drawing1. Random circles of various colors
are drawn. A Draw Circles button is available to redraw the random
circles.
Directions
- Create a project named Drawing2. Leave the layout and activity
files with their default names.
- Set up the app with these source code files:
activity_main.xml
MyView.java
MainActivity.java
- Run your app to test it. Here is the emulator screenshot.