回答
,請使用以下代碼來繪製
BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.current_position_tennis_ball)
MarkerOptions markerOptions = new MarkerOptions().position(latLng)
.title("Current Location")
.snippet("Thinking of finding some thing...")
.icon(icon);
mMarker = googleMap.addMarker(markerOptions);
請隨時解釋這將如何實現任何形式的動畫效果。 – CommonsWare
@CommonsWare你爲什麼認爲這不起作用?我沒有嘗試Prakash解決方案,但理論上你可以將它鏈接到可繪製的XML,其中有一組圖像顯示說每200毫秒..會不會動畫圖像? – Snake
@Snake:你假設'BitmapDescriptor'能夠處理動畫,我假設它不是(如果是的話,他們會將它命名爲'DrawableDescriptor'而不是'BitmapDescriptor')。這就是爲什麼我向回答者建議解釋是有序的。 – CommonsWare
設置標記也許你可能會得到的想法學習吧......
TranslateAnimation動畫=新TranslateAnimation(0.0F,400.0f,0.0 f,0.0f);
//新TranslateAnimation(xFrom,x要,yFrom,中國一拖)
animation.setDuration(2000); // animation duration
animation.setRepeatCount(100); // animation repeat count (total repetition)
animation.setRepeatMode(2); // repeat animation (left to right, right to left)
//animation.setFillAfter(true);
img_animation.startAnimation(animation);
- 1. 標記抖動添加動畫谷歌地圖android
- 2. Android:動畫標記運動
- 3. android mapbox:如何爲標記添加動畫,如從屏幕頂部落下的標記?
- 4. Android Maps v2 - 動畫標記
- 5. 如何在標籤上添加動畫?
- 6. 如何將標記添加到Android地圖上時進行動畫處理?
- 7. jVectorMap - 如何動態添加標記
- 8. 如何在android Google Map中添加標記標記?
- 9. Android AdapterView添加動畫
- 10. 如何添加動畫?
- 11. 如何添加動畫類?
- 12. 如何添加動畫BottomSheetDialogFragment
- 13. 標記動畫
- 14. 如何在動畫中的移動圓圈後添加標籤?
- 15. Android圓圈複選標記動畫
- 16. 關閉時添加動畫活動 - android
- 17. 如何標記WAI-ARIA的加載動畫?
- 18. 將動畫添加到Android的SnackBar中
- 19. Gmap3:如何給標記添加標題?
- 20. Android - 如何添加Google地圖標記標籤?
- 21. 如何在頭部添加元標記並通過使用邊緣動畫的標記點擊
- 22. 的Android添加標記按鈕點擊
- 23. 將1000的標記添加到Android Googlemap
- 24. 如何在android map api V2中設置動畫標記?
- 25. 添加動畫拖欠setOnMarkerClickListener Maps API第2機器人標記
- 26. 是否可以在ArcMap中爲標記添加動畫效果?
- 27. 使用JavaScript代碼爲Google標記添加動畫效果
- 28. 添加動畫?
- 29. 如何動畫標記物在有幾十個標記的標記集羣
- 30. Android的谷歌地圖添加標記自己的標記
由於沒有明顯的「動畫標記」,也許您能解釋一下你所說的這個詞是什麼。 – CommonsWare
我想在例子 – Abdel
中添加這種類型的標記(.gif標記)嗨,我也面臨同樣的問題,如果你有溶劑請在這裏分享溶劑。謝謝 –