画像をある程度回転させ、背景を赤色で塗りつぶそうとしています。たとえば、私は画像を持っていて、15 分 (45 度) に分の niddle を回転させ、その 4 分の 1 円を赤色で表示したいと考えています。
次のコードを使用して、回転をある角度に回転させましたが、背景色を塗りつぶすことができません。助けてください。
RotateAnimation rotateAnimation = new RotateAnimation(
(1 - 1) * 6, 10 * 6,
Animation.RELATIVE_TO_SELF, 0.5f,
Animation.RELATIVE_TO_SELF, 0.5f);
rotateAnimation.setInterpolator(new LinearInterpolator());
rotateAnimation.setDuration(5000);
rotateAnimation.setFillEnabled(true);
rotateAnimation.setFillBefore(true);
rotateAnimation.setBackgroundColor(Color.RED);
orgClockImage.startAnimation(rotateAnimation);
ありがとう