1
下面是繪製矩形所需的代碼。如果不使用一些Runnables使其閃爍,它將如何實現?有沒有這樣的選擇?或者,也許我應該把閃爍的背景gif?android - 以編程方式爲ShapeDrawable打開/關閉眨眼/鰭狀肢動畫/效果(RectShape)
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);
我的意思是這樣
ohMyShape.getPain().setAnimation(Animation.BLINK);
真的會去除疼痛。
我認爲這種沉默意味着沒有辦法做到這一點。 – duru 2012-07-30 22:35:50