I have an android app with googlemap view
I need to put an animated icon showing the gps position on the map
I know how to do this with a regular png image, but I want to use something like a GIF image, an animated image
How can i do this?
EDIT:
IT HAS 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 bind the XML animated to drawable
drawable2 = this.getResources().getDrawable(R.layout.animation);
source
share