私はAndroidを初めて使用し、翻訳アニメーションを作成しようとしています。
これは私のxmlコードです:(rail.xml)
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXDelta="100%p"
android:toXDelta="0"
android:duration="4000" />
これは私のJavaコードです:
final Animation animShow = AnimationUtils.loadAnimation( this, R.anim.rail);
for(int i = 1; i < 5; i++ ){
animShow.setRepeatCount(i);
textTV.setText("Hello Android!!");
textTV.startAnimation(animShow);
}
質問したいのですが、各アニメーションの繰り返しのテキストを変更するにはどうすればよいですか?