Change the color of polyline in android google map v2
android, google-maps, google-maps-android-api-2
Solution
I already solved my problem.
First I created an xml file in my values folder Color.xml
Color.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="blue">#0000EE</color>
</resources>
Then in my Activity
Polyline line = map.addPolyline(new PolylineOptions()
.Add(new LatLng(-37.81319, 144.96298), new LatLng(-31.95285, 115.85734))
.InvokeColor(Resources.GetColor(Resource.Color.blue));
Problem
I have this code found from this link https://developers.google.com/maps/documentation/android/shapes#customizing_appearances ``` Polyline line = map.addPolyline(new PolylineOptions() .add(new LatLng(-37.81319, 144.96298), new LatLng(-31.95285, 115.85734)) .width(25) .color(Color.BLUE) .geodesic(true)); ``` My Problem is Color in Color.Blue returns an error saying The name Color does not exist in the current context.