我从用户那里得到这些错误,我在我的应用程序中实现了AnimationDrawable

时间:2016-08-04 05:51:53

标签: android

我在后台使用带有9张图片的AnimationDrawable swi

<item android:drawable="@drawable/france" android:duration="3000" />
<item android:drawable="@drawable/australia" android:duration="3000" />
<item android:drawable="@drawable/america" android:duration="3000" />
<item android:drawable="@drawable/asia" android:duration="3000" />
<item android:drawable="@drawable/egypt" android:duration="3000" />
<item android:drawable="@drawable/germany" android:duration="3000" />
<item android:drawable="@drawable/turkey" android:duration="3000" />
<item android:drawable="@drawable/pakistan" android:duration="3000" />
<item android:drawable="@drawable/dubai" android:duration="3000" />

layout.setBackgroundDrawable(getApplicationContext().getResources().getDrawable(R.drawable.spin_animation));
AnimationDrawable frameAnimation = (AnimationDrawable) layout.getBackground();

它在我公司的所有设备上运行良好我有大约5个设备:nexus 5 samsung j7等。但由于我的应用程序非常着名,数百万次下载我遇到此问题我的图像平均大小为100kb { {3}} this is the logcat 1 this is 2nd

0 个答案:

没有答案