¡@

Home 

java Programming Glossary: toclear

Android SurfaceView/Canvas flickering after trying to clear it

http://stackoverflow.com/questions/6847323/android-surfaceview-canvas-flickering-after-trying-to-clear-it

canvas @Override protected void onDraw Canvas canvas if toClear canvas.drawColor Color.BLACK if this is not set to change back.. is not set to change back to false it does not flicker toClear false Draw some objects that are moving around public void clearScreen.. This method is called when the user pressed a button toClear true After Googling around a litte I heard about double buffering..