Using Gif and other images in Android has become easier to implement using the Glide Library, with just a simple couple lines of code you can have your project up and working.
First create a blank Activity
Create a ImageView to hold the Gif/Images
[2] add the dependencies to your grade file
dependencies { implementation 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' }[3] utilising the Glide Library component ImageView imz = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load(R.drawable.pic).into(imageView); }
Comments
Post a Comment