I am newbie in MonoDroid. How can I draw ellipse in runtime using C# in Android Application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To draw an ellipse, or other geometric shapes, you can use the canvas object. Here’s a very basic bit of code that will draw an ellipse (oval). I basically just created a view and overrode the OnDraw method to draw the ellipse. You define a RectF object which defines the rectangular boundary of the ellipse. A good reference is the Android SDK:
http://developer.android.com/reference/android/graphics/Canvas.html