Posts

Showing posts with the label gif on android

Android play .gif file on imageview in aide ide

Image
In this tutorial we are playing .gif files on imageview in our android app project in aide ide,  the default imageview is not support playing .gif files, for fast and easy way im using glide library. Glide is an Image Loader Library for Android developed by bumptech and is a library that is recommended by Google. It has been used in many Google open source projects including Google I/O 2014 official application. It provides animated GIF support and handles image loading/caching. First goto your "build.gradle" and add this code below compile 'com.github.bumptech.glide:glide:3.6.1' Next goto your java files e.g MainActivity.java and use this following codes below: private ImageView = imff; imff=(ImageView)findViewById(R.id.viewthefile_image); String kakaka5 = "https://giffile_url_here.thatyourlink"; Glide.with(this) // replace with 'this' if it's in activity .load(kakaka5) .diskCacheStrategy(DiskCacheStrategy.ALL) ....

Malitanyo Developer blog & tutorial 2020
Refund Policy    Facebook Page    Google Play

Blogger.com