title: Polyline change color dynamically - GoogleMap
body: <p>I'd like to change the color of a polyline dynamically. The polylines are added to the GoogleMap using the following code:</p>
  
  <pre><code>//Add the polylines to Maps.
  for (PolylineOptions polylineOptions : options) {
      if (!isFinishing()) { 
          polyLines.add(mGoogleMap.addPolyline(polylineOptions));
          this.polyLinesOptions.add(polylineOptions);
      }
  }
  </code></pre>
  
  <p>The Polylines are decoded into PolylineOptions. I'm wondering how I can change the color of a polyline. For example gray out polylines from the route where we've already been. I've tried changing the color attribute of the PolylineOption and setColor of the PolyLine itself but nothing seems to work.</p>