0

I have read some thread to change colour like in here. but my question is little bit different

I set a marker in google map using the code below

googleMap.addMarker(MarkerOptions().position(eventLocation).title("title here")).showInfoWindow()

the default marker colour is red, and I need to change that red colour to be the colour that I have in:

resources --> values --> colours

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <color name="brand_color">#78a11d</color>

</resources>

how to do that ?

Alexa289
  • 8,089
  • 10
  • 74
  • 178

1 Answers1

0

May be this can help you

mMarkerOptions.position(beachCoord).title("marker title").snippet("marker info").icon(BitmapDescriptorFactory.fromResource(R.drawable.gray_dot));

In drawable file you can assign a color from color file

Jignesh Mayani
  • 6,937
  • 1
  • 20
  • 36