NoONE
NoONE

Reputation: 1

Gradle dependencies to add gif library

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.

Upvotes: 0

Views: 5936

Answers (2)

moueidat
moueidat

Reputation: 564

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

Upvotes: 0

Moayed Alayseh
Moayed Alayseh

Reputation: 188

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" />

Upvotes: 1

Related Questions