1

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

Ralph
  • 435
  • 1
  • 5
  • 13
  • 1
    Possible duplicate of [Adding gif image in an ImageView in android](http://stackoverflow.com/questions/6533942/adding-gif-image-in-an-imageview-in-android) – Shahzeb Feb 03 '16 at 17:10

1 Answers1

2

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"
    />