地図上でマーカー/ピン/オーバーレイアイコンをアニメーション化する方法を教えてください。過去2日間からたくさん試しましたが、うまくいきません。
前もって感謝します..
動作しない
res / drawable / map_marker.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/ecall_lowon" android:duration="200" />
<item android:drawable="@drawable/ecall_mediumoff" android:duration="200" />
Javaコード
Drawable drawable = this.getResources().getDrawable(R.drawable.map_marker);
MapItemizedOverlay mapItemizedOverlay = new MapItemizedOverlay(drawable, this);
GeoPoint geoPoint1 = new GeoPoint((int)(9.982878 * 1E6), (int)(76.285774 * 1E6));
GeoPoint geoPoint2 = new GeoPoint((int)(9.973928 * 1E6), (int)(76.276824 * 1E6));
OverlayItem overlayItem1 = new OverlayItem(geoPoint1, "Title1", "");
OverlayItem overlayItem2 = new OverlayItem(geoPoint2, "Title2", "");
mapItemizedOverlay.addOverlayItems(overlayItem1);
mapItemizedOverlay.addOverlayItems(overlayItem2);
mapView.getOverlays().add(mapItemizedOverlay);
しかし、成功していません...