In this video, you will learn how to show an animated GIF in an Android App. For the approach I'm going to show you, you'll need to use at least API Level 28. This is the Android approach for showing GIFs. Thus, you won't need any external dependency.
Code on GitHub:
https://github.com/ldickmanns/gif-app
Support, get in touch, and suggest new video topics:
/ ldickmanns
Timestamps:
0:00 Intro & resulting app
0:09 Why not use an external library
0:38 Project Setup
1:13 Adding the GIF to Android Studio
1:36 Loading the GIF into the app
2:00 Adjusting the XML code
2:18 Adding the GIF to the ImageView
3:20 Running app
3:30 Refactoring: loading the GIF in a Thread
4:39 Outro
@kotlin.learnings on Instagram:
/ kotlin.lear. .
@java.learnings on Instagram:
/ java.learni. .
Thank you for watching!