I use this code as default map markers for my google maps that work fine.
BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED);
Now I want the map marker to be attached to ImageView , so it acts as a kind of marker if the user wants to view the map data in the list. My problem is that I cannot find a method that will assign a BitmapDescriptor variable to ImageView
BitmapDescriptor filterIcon = null; filterIcon = BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED); imageView.setBackground(filterIcon);
That is my current code, but of course it throws an error.
source share