添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Placeholder with animation drawable not animating #505

Closed
@jam0cam

Description

According to the docs, it is possible to do this:

Glide.with(myFragment)
.load(url)
.centerCrop()
.placeholder(R.drawable.loading_spinner)
.crossFade()
.into(myImageView);

I've defined my loading_spinner as so, and it's not showing any animation. Any ideas?

<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
  <item android:




    
drawable="@drawable/spinner_1" android:duration="100" />
  <item android:drawable="@drawable/spinner_2" android:duration="100" />
  <item android:drawable="@drawable/spinner_3" android:duration="100" />
  <item android:drawable="@drawable/spinner_4" android:duration="100" />
  <item android:drawable="@drawable/spinner_5" android:duration="100" />
  <item android:drawable="@drawable/spinner_6" android:duration="100" />
  <item android:drawable="@drawable/spinner_7" android:duration="100" />
  <item android:drawable="@drawable/spinner_8" android:duration="100" />
</animation-list>