7

CountDownTimer in surfaceview

view full story
linux-howto

http://stackoverflow.com – I'm trying to create a countdowntimer and display it on the canvas. Here's how I display it. public class DrawView extends SurfaceView { private Paint textPaint = new Paint(); Bitmap GameBg; DisplayMetrics metrics; int screenWidth = 0; int screenHeight = 0; Rect dest; Paint paint; String timer; public DrawView(Context context) { super(context); // Create out paint to use for drawing textPaint.setARGB(255, 200, 0, 0); textPaint.setTextSize(60); // This call is necessary, or else the // draw method will not be called. setWillNotDraw(false); GameBg = Bi (HowTos)