Changing colour of Markers - Google Map V2 Android

前端 未结 3 845
遇见更好的自我
遇见更好的自我 2021-02-05 00:06

I\'m having a little trouble understanding how to change the colour of a marker in an Android Google Map project.

My code for a Marker is:

googlemap.addM         


        
3条回答
  •  终归单人心
    2021-02-05 00:37

    The problem is the semicolon ";" on the end of the line

    .setSnippet("and snippet");
    

    If you delete the semicolon making it

    .setSnippet("and snippet")
    

    It should work.

提交回复
热议问题