いくつかのpngをアニメーション化しようとしていますが、アニメーションをループします。これは私のコードです:
wave.setBackgroundResource(R.drawable.wave_animation);
frameAnimation = (AnimationDrawable)wave.getBackground();
frameAnimation.setCallback(wave);
frameAnimation.setVisible(true, true);
frameAnimation.start();
そしてここでpngを含むxml
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true">
<item android:drawable="@drawable/wave_01" android:duration="200" />
<item android:drawable="@drawable/wave_02" android:duration="200" />
<item android:drawable="@drawable/wave_03" android:duration="200" />
<item android:drawable="@drawable/wave_04" android:duration="200" />
</animation-list>
android:oneshot=false も追加しましたが、機能しません。