Hi!
The source code as an example :
Canvas c=mHolder.lockCanvas(null);
Paint paint=new Paint();
paint.setColor(Color.DKGRAY);
c.drawRect(new RectF(40,60,80,80), paint);
mHolder.unlockCanvasAndPost(c);
My aim is to draw several graphics using lockCanvas and
unlockCanvasAndPost at different places controled by keydown event,but
each time when I press the key,the screen becomes black and only
drawing current graphics,when pressing the key again,the background
recoveryed.
So how to overcome this problem?
--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en