0

I am using the these dependencies:

  compile 'com.felipecsl:gifimageview:2.1.0'
  compile 'commons-io:commons-io:2.4'

But it couldn't resolve the first one. I'm using Android Studio 2.3.2.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
NoONE
  • 1
  • 1
  • 2

2 Answers2

1

try this library

compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.0'

and this is the xml

 <pl.droidsonroids.gif.GifImageView
                android:scaleType="centerCrop"
                android:src="@drawable/gif1"
                android:layout_width="150dp"
                android:layout_height="150dp" />
Moayed Alayseh
  • 188
  • 3
  • 14
0

Do you know Glide? It's like Picasso, a library to load an image into an ImageView, but it's "recommended by Google". Anyway, this library is similar to Picasso, but the difference is the ability to load a gif :)

Why not giving a try ? You can follow this stackoverflow example given by another member: Displaying GIF in ImageView using Glide

Community
  • 1
  • 1
moueidat
  • 529
  • 1
  • 7
  • 21