What is class to draw circle on Android?

Asked

Viewed 189 times

2

I know the Class Rect for rectangle and circle

 private Rect retangulo = new Rect();

What class to draw circle on Android?

2 answers

2


There is the OvalShape, see at documentation. Example:

OvalShape circle = new OvalShape(); 
circle.resize(50f * mDensity, 50f * mDensity);

Imagery:

inserir a descrição da imagem aqui

See some application examples on Codota for Android.

2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.