من می خوام 15 تا عکس درون یک imageview نمایش پیدا کند ولی متاسفانه فقط 9 تا انها نمایش داده می شود ومابقی پیغام خطا صادر می شودلطفا راهنمایی کنید
فایل xml درون فایل anim
کد پیاچپی:
super.onCreate(savedInstanceState);
setContentView(R.layout.show_pictur_first);
final ImageView iv = (ImageView) findViewById(R.id.imageView1);
iv.setImageResource(R.anim.animation);
final Animatable anim = (AnimationDrawable) iv.getBackground();
anim.start();
Thread timer = new Thread() {
@Override
public void run() {
try {
sleep(1000);
}
catch (InterruptedException whatIsMyProblem) {
whatIsMyProblem.printStackTrace();
} finally {
Intent in = new Intent(show_first_page.this, input_data_first.class);
startActivity(in);
}
}
};
timer.start();
}
فایل xml درون فایل anim
کد پیاچپی:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/animtion_001" android:duration="30"/>
<item android:drawable="@drawable/animtion_002" android:duration="30"/>
<item android:drawable="@drawable/animtion_003" android:duration="30"/>
<item android:drawable="@drawable/animtion_004" android:duration="30"/>
<item android:drawable="@drawable/animtion_005" android:duration="30"/>
<item android:drawable="@drawable/animtion_006" android:duration="30"/>
<item android:drawable="@drawable/animtion_007" android:duration="30"/>
<item android:drawable="@drawable/animtion_008" android:duration="30"/>
</animation-list>