Javatpoint Logo
Javatpoint Logo

Android Simple Graphics Example

The can be used to draw graphics in android. It provides methods to draw oval, rectangle, picture, text, line etc.

The class is used with canvas to draw objects. It holds the information of color and style.

In this example, we are going to display 2D graphics in android.


File: activity_main.xml

Activity class



android simple graphics example output 1

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA