drawing without the onDraw method

Problems with Canvas, OpenGL, etc...

drawing without the onDraw method

Postby lasertown » Tue Mar 22, 2011 3:09 am

Hi everyone,

Reading the android docs, they make it sound like you can use canvas straight up to draw to the screen, without going through an onDraw() callback method.

They say:
If your application does not require a significant amount of processing or frame-rate speed (perhaps for a chess game, a snake game, or another slowly-animated application), then you should consider creating a custom View component and drawing with a Canvas in View.onDraw().


...As opposed to drawing with a Canvas outside of View.onDraw()? How do you do that? I'm trying to make a side-scroller and am looking for the fastest way to draw to the screen.

Thanks
lasertown
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Mar 22, 2011 3:02 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests