¡@

Home 

2014/10/16 ¤W¤È 08:26:37

android 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..

Android SurfaceView/Canvas flickering after trying to clear it

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

null if canvas null onDraw canvas holder.unlockCanvasAndPost canvas @Override protected void onDraw Canvas canvas if toClear canvas.drawColor Color.BLACK if this is not set to change back to false it does not flicker toClear false Draw some objects.. Canvas canvas if toClear canvas.drawColor Color.BLACK if this 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.. 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 but came to the understanding that lockCanvas and unlockCanvasAndPost..