free
web stats

Android – How to Draw Geometric Shapes Like Rectangle, Circle

In this post we will learn how to draw geometric shapes in Android.

Firstly open new project named DrawingShapes.

Then select empty project.

Add these codes in MainActivity class

 

Add these codes in activity_main.xml file

Run application.

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *