However imageView won’t support gif images.
Obvious that, gif have animated content.
Using imageView you can add gif it display but just static thumbnail of picture, animation won’t be displayed.
But when you need to display gif , it’s kinda tough .
But no need to worry , we have a easy solution for you .
All you need to do is just add couple of lines into your XML file.
Step 1. All of first we need to add a dependency in your Gradle file.
So copy the following line and add it to Gradle file.
Step 2: Cool, just copy and paste the following lines of code into your XML file.
<pl.droidsonroids.gif.GifTextView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/gif_file"/>
Yes , that’s all.
Now run …