GitHub link to download project for free
1- I am using android-studio 3.5.3 editor to develop this example
so let's start:-
1- Start a new project or use any existing project.
2- add the following dependencies in your app-level Gradle file.
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17' |
3- add mavenCentral() in allprojects under project level Gradle file.
allprojects { |
4- add GifImageView in activity or fragment xml where you want to show the gif.
<pl.droidsonroids.gif.GifImageViewandroid:layout_width="match_parent" |
5- if you want to use custom width and height, you are free for that.
Click here for details
6- if want to set dynamically in java file
|
//asset file GifDrawable gifFromAssets = new GifDrawable( getAssets(), "anim.gif" ); //resource (drawable or raw) GifDrawable gifFromResource = new GifDrawable( getResources(), R.drawable.anim ); //Uri GifDrawable gifFromUri = new GifDrawable( contentResolver, gifUri );
|






3B3FF60186
ReplyDeleteTakipçi Satın Al
Footer Link Satın Al
Google Konum Ekleme
3D Car Parking Para Kodu
Dude Theft Wars Para Kodu
564CE7C93A
ReplyDeleteBeğeni Satın Al
Mobil Ödeme Takipçi
Takipçi Fiyatları
61E759672E
ReplyDeleteTakipçi Satın Al
YT Abone Hilesi
Film Siteleri
Anime Önerileri
Yabancı Film İzleme Siteleri
SEO Uzmanı
Google Adres Ekleme
Google Yorum Satın Al
Perde Kumaşı