i have an android app with a googlemap view
i have to put an animated icon representing a gps position on the map
i know how to do it with a normal png image, but i want to use something like a GIF image, an animated image
how i can to do it?
EDIT:
THIS IS THE 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 is where i asign the XML animated to the 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