7

嗨,我正在使用 v2 开发 mapview,

从 MarkerOptions 对象我得到一个图标,比如......

MarkerOptions mo = markersList.get(pos);
BitmapDescriptor icon = mo.getIcon(); //Gets the custom icon set for this MarkerOptions object.

ImageView logo;

//how to assign icon to textview like using below code
logo.setBackgroundResource(icon) // It is not taking directly (BitmapDescriptor icon)

请帮忙。谢谢你。

4

0 回答 0