I am using the drawpath function outside the ondraw function .I am calling this in my own function where I am calculating the screen co-ordinates.But draw path is not paiinting anything.
Is it true that the drawpath is functional only inside ondraw?
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.
Yes, when you want to draw a
Pathyou have to use aCanvaswhich you can only use in theonDraw(Canvas canvas)method. However it is possible to call you method from within theonDraw(Canvas canvas)method like thissee also How to use canvas in your android apps for more information on
Path