Add Dependencies in Gradle :
dependencies {
compile 'com.roger.gifloadinglibrary:gifloadinglibrary:1.0.0'
}
Layout File:-
<pl.droidsonroids.gif.GifImageView
android:layout_width="80dp"
android:layout_height="50dp"
android:id="@+id/loading"
android:src="@drawable/mygif" <!-- here select your GIF file -->
android:layout_marginBottom="30dp"
android:scaleType="centerCrop"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
No comments:
Post a Comment