Below is the code necessary to draw a rectangle. How would it be possible without using some Runnables to make it blink? Is there an option to make this? Or maybe I should put a blinking background gif?
ShapeDrawable ohMyShape = new ShapeDrawable(new RectShape());
ohMyShape.getPaint().setColor(Color.RED);
ohMyShape.getPaint().setStyle(Style.STROKE);
ohMyShape.setBounds(x, y, x+l, y+h);
ohMyShape.draw(canvas);
I mean something like
ohMyShape.getPain().setAnimation(Animation.BLINK);
would really remove the pain.