如何将BitmapDescriptor转换为android中的drawable for imageview

时间:2013-10-04 12:35:46

标签: android android-imageview

您好我正在使用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)

请帮忙。谢谢。

0 个答案:

没有答案
相关问题