問題: アニメーションリストの最初の要素のみを表示します。描画可能な解像度/中アニメーションリストが機能していない - 最初の要素のみを表示
アニメーションリスト描画可能ファイル:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/k2si"
android:duration="1000"/>
<item
android:drawable="@drawable/android"
android:duration="1000"/>
</animation-list>
アニメーションの開始:
ImageView image = (ImageView) findViewById(R.id.imageView1);
image.setBackgroundResource(R.drawable.screensaver_image);
((AnimationDrawable) image.getBackground()).start();
Documentation(アニメーションをフレームにスクロール)
あなたのドロウアブルは何ですか? –
どこからstart()メソッドを呼び出していますか?それがあなたの活動のonCreateにあれば、それは動かないでしょう。 – MikeIsrael
@Mike - はい、それは 'onCreate()'にあります。スタートを呼び出す正しいライフサイクルの方法は何ですか?自分の質問に答える –