[android-developers] Re: Prevent clearing Canvas in onDraw() ?

2009-05-15 Thread alan
draw everything to an offscreen image then just draw the image onto the canvas for each ondraw On May 14, 5:21 pm, ellipsoidmob...@googlemail.com ellipsoidmob...@googlemail.com wrote: By overriding onDraw you're taking responsibility for drawing the whole view, so you have to draw everything

[android-developers] Re: Prevent clearing Canvas in onDraw() ?

2009-05-14 Thread ellipsoidmob...@googlemail.com
By overriding onDraw you're taking responsibility for drawing the whole view, so you have to draw everything everytime I don't know the layout of your UI, but possibly you can use a view layout with view subclasses such as ImageView - these will then take care of their own drawing evenrs.