0

I found below link for use of Gif at ImageView But I don't know how use it. I want show Gif Image at ImageView from sdcard or assets folder. help me . Thank http://www.java2s.com/Open-Source/Android_Free_Code/ImageView/Download_Free_code_ImageViewEx.htm

also I use Tutorial: How to play animated GIFs in Android.but when I use that.it show's only one gif at Activity.I want show many gif picture at one Activity and at different locations of screen.

1 Answers1

0

if you wanna show gif animation, Try this because android and ios can't support this kind of animation Create in drawable folder my_gif.xml

<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false">
<item android:drawable="@drawable/image_1" android:duration="100" />
<item android:drawable="@drawable/image_2" android:duration="100" />
<item android:drawable="@drawable/image_3" android:duration="100" />
</animation-list> 

add parameter for your img view android:src="@drawable/my_gif"