How to convert BitmapDescriptor to drawable in android to view images

Hi, I am developing mapview using v2,

From the MarkerOptions object, I get an icon, for example ...

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) 

Please, help. Thanks.

+7
android android-imageview
source share

No one has answered this question yet.

See related questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to keep Android activity state by saving instance state?
2097
Is there a way to run Python on Android?
1844
What is "Context" on Android?
1002
Grid motion detection
879
How to convert Drawable to Bitmap?
389
Mipmap drawables for icons

All Articles