When I create a new Canvas in onDraw() like this:
Canvas c = new Canvas(myBitmap);
and then use this to draw something, it dosen’t work.
But when I use the canvas parameter from onDraw(Canvas canvas), it works. Can someone tell me why?
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.
Try out this –
And, see the related question from Stackoverflow
and, try out the Sampleapp also.