Search code examples
javaandroidandroid-mapviewopacitygoogle-polyline

Can I set polyline opacity in Android Google map API


I have draw polyline in my maps activity, but I have no idea to customize it like set up it opacity. I do need your help


Solution

  • Opacity should be added to the colour of polyline . Just add opacity at start of hex color value.

    Eg if your colour is black i.e #0000

    50 percent opacity colour will look like this #500000