我使用以下代码行在 android Google Maps API V2 中创建了自定义标记:
Bitmap.Config conf = Bitmap.Config.ARGB_8888;
Bitmap bmp = Bitmap.createBitmap(200, 50, conf);
Canvas canvas = new Canvas(bmp);
canvas.drawText("TEXT", 0, 50, paint);
canvas.drawBitmap(BitmapFactory.decodeResource(getResources(),
R.drawable.map_brown), 0, 0, paint);
mMap.addMarker(new MarkerOptions()
.position(clickedPosition)
.icon(BitmapDescriptorFactory.fromBitmap(bmp))
.anchor(0.5f, 1)
);
现在,如何在单击从 map_brown 到 map_gray 的标记时更改标记图像
提前致谢..