Thursday, June 14, 2001 10:02 PM
You should be drawing the text in the paint() and repaint() methods of your subclass of canvas. These methods are called when the canvas is exposed or scrolled.
If you're drawing something that changes dynamically (e.g. if you're writing a drawing program) then you may want instead to draw the text into an offscreen image. Then have the paint() and repaint() methods on the canvas drawImage that offscreen image.