I am using Canvas.drawCircle to draw a circle in Android laout.
Method gets 3 parameters – first two are position – x and y.
Is it possible to skip hardcoded position of the circle and draw it centered ?
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.
Following code can be used to get the width and height of the screen.
To draw circle in the middle of screen you can call :