Hi
I want use canvas outside of the onDraw() method, I code this way:
Canvas mCanvas;
protected void onDraw(Canvas canvas) {
mCanvas = canvas;
}
private void drawSth(){
mCanvas.drawRect(0,0,100,100,mPaint);
}
but it seems useless, please tell me how to draw sth outside of
onDraw() method?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---