Click here to Skip to main content
15,916,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I'm using gif image by ImageView in my android application, But the picture doesn't have any movement.
HTML
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="106dp"
android:layout_y="340dp"
android:src="@drawable/clappinghands" />
Posted

1 solution

Better solution you should use a VideoView. If you want to use ImageView then you need to divide the image and then apply animation.See:
Adding-gif-image-in-an-imageview-in-android[^]
Playing-an-animated-gif-image-file-in-imageview[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900