Blogger Text

My Aim to Provide you quality contents, Tips & Tricks, Software, Microsoft Office, Graphic Editing (Adobe PhotoShop, After Affects, Illustrator, inDesign) Corel Draw, Corel Video Studio, Cyberlink PowerDirector, Power ActionCinema, Tutorials about Blogging and VU Assignments, Quizes & GDB Solutions and Much More... at regular Basis
                                     ***    Kindly Subscribe our Official YouTube Channel "INFOPALACESS OFFICIAL-Tuts: in this channel we upload Programming (C,C++,C# JAVA, PHP), Web Development, Graphics Editing and Microsoft Office Step by Step Tutorials from bigginer to Advance Level. We also provide free online courses at our YouTube Channel. ***   Graded Assignments/Quizes and GDB will start in Next Week. Solution ideas of All assignments, Quizes and GDB will be available here. If you have any problem regarding this then you can contact us.

How to add Animated GIF in Android Studio in Android Application?

Adding an animated GIF into our application make it more live and beautiful. And implementing one properly is a little difficult task, well not anymore.

Because whereas Android studio is very useful tool for developing powerful android applications but there are some complexity provided by google in android studio which make some things difficult to do. We can get things done with some types of libraries which are provided over internet. A most common question arose by many developers that

     How to add Animated GIF in your android application? ?

Now adding Animated fig to your android application in android studio is easy as pie. There is a free library called “android-gif-drawable” by ‘koral’ to implement Animated GIF under MIT License.
Please follow to these two simple steps to add animated GIF to your application in your desired activity or place.

Step 1:-
Insert this dependency to    build.gradle .  file of your project.

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

then click on Sync gradle. :-
Step 2:-

Now add your desired GIF file into Drawable folder.

Step 3:-
Now Move to your XML File  and add following GifImageView in xml file.




That’s it. you have done.

For more reference visit the library by koral  in github

Post a Comment