Reputation: 465
what is the most efficient way on adding a gif file in an ImageView in android without using ion library?
anything would help, thank you so much
Upvotes: 1
Views: 3079
Reputation: 21
The most common way I used to see recently is this library Android GIF library . You'll insert the animated GIF in your layout.xml in this way
<pl.droidsonroids.gif.GifTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawableTop="@drawable/left_anim"
android:drawableStart="@drawable/left_anim"
android:background="@drawable/bg_anim"
/>
Upvotes: 2