0

コードではなく、xml で Animation.RELATIVE_TO_SELF を定義する必要がありますか? 翻訳アニメーション (xml で定義されている) と一緒に回転アニメーションを追加しようとしていますが、以下のコードは機能せず、xml でパラメーター pivotXType を見つけることができます。助けてください...

anim = new RotateAnimation(0, 10,
                    Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF,
                                    0);
                anim.setInterpolator(interpolator);
                anim.setDuration(mDuration);
                anim.setFillEnabled(true);
                anim.setFillAfter(true);
                ((AnimationSet)view_1_anim_c).addAnimation(anim);
                apa1.startAnimation(view_1_anim_c);
4

1 に答える 1

0

AnimationSetアニメーション XML<set>タグをチェックアウトまたはチェックアウトします。

于 2012-04-17T17:26:35.683 に答える