私はアンドロイドの初心者です...観覧車ゲームを作りたいのですが、観覧車の椅子を車輪で動かす必要があります...私は次を使用します:
TranslateAnimation transAnimation1 = new TranslateAnimation(0, 145, 0, 275);
transAnimation1.setDuration(6000);
ChairA1.startAnimation(transAnimation1);
TranslateAnimation transAnimation2 = new TranslateAnimation(0, 50, 0, 50);
transAnimation2.setDuration(6000);
ChairA2.startAnimation(transAnimation2);
TranslateAnimation transAnimation3 = new TranslateAnimation(0, 50, 0, 50);
transAnimation3.setDuration(6000);
ChairA3.startAnimation(transAnimation3);
TranslateAnimation transAnimation4 = new TranslateAnimation(0, 50, 0, 50);
transAnimation4.setDuration(6000);
ChairA4.startAnimation(transAnimation4);
TranslateAnimation transAnimation5 = new TranslateAnimation(0, 50, 0, 50);
transAnimation5.setDuration(6000);
ChairA5.startAnimation(transAnimation5);
TranslateAnimation transAnimation6 = new TranslateAnimation(0, 50, 0, 50);
transAnimation6.setDuration(6000);
ChairA6.startAnimation(transAnimation6);
TranslateAnimation transAnimation7 = new TranslateAnimation(0, 50, 0, 50);
transAnimation7.setDuration(6000);
ChairA7.startAnimation(transAnimation7);
TranslateAnimation transAnimation8 = new TranslateAnimation(0, 50, 0, 50);
transAnimation8.setDuration(6000);
ChairA8.startAnimation(transAnimation8);
私は観覧車に 8 脚の椅子を持っていますが、問題は車輪が円形であり、曲線の目的地で ImageView(椅子) を作成できないことです...誰か助けてくれますか...これについて本当に助けが必要です