I'm trying to set red color on my polylines of my map with this code:
PolylineOptions rectOptions = new PolylineOptions();
rectOptions.color(R.color.colorPrimary);
String[][] lineInformation = ((MyApplication)getApplication()).getLineInformation(line);
for (int i=0; i<lineInformation.length; i++){
rectOptions.add(new LatLng(Double.parseDouble(lineInformation[i][0]),Double.parseDouble(lineInformation[i][1])));
}
But it's not working, instead of showing the primaryColour of my app which is red, it's showing a dark color with some alpha.
I followed the official guide: https://developers.google.com/maps/documentation/android-api/shapes