android - It is possible to put a animate image on a item of a googlemap? (like a gif) -


i have android app googlemap view

i have put animated icon representing gps position on map

i know how normal png image, want use gif image, animated image

how can it?

edit:

this xml animated: animation.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/miniicon" android:duration="200" /> <item android:drawable="@drawable/miniicon2" android:duration="200" /> <item android:drawable="@drawable/star" android:duration="200" /> </animation-list> 

this asign xml animated drawable

//drawable2 = this.getresources().getdrawable(r.drawable.miniicon2); // icono del programa, para mi posicion gps drawable2 = this.getresources().getdrawable(r.layout.animation); // icono del programa, para mi posicion gps 

another answer - there's similar (but old) question on stackoverflow:

image series (animation) on google maps

which if @ accepted answer, provides demo link. other interesting comments well.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -