According to the Polyline documentation;
https://developers.google.com/android/reference/com/google/android/gms/maps/model/Polyline
polylines can have a z-index that affects their height relative to other shapes, but not markers. Markers are displayed at a higher level than all shapes. So to get a line to display above the markers on the map, would I have to ditch Polyline entirely, and put a Canvas on a FrameLayout and handle the drawing of the line myself? Or is there a simpler way?
polylineabove anymarkereven thought u set thezIndexto a big number. I think you can use the fromScreenLocation method to convert your marker's position into a screen location, then you can draw a line between two different locations in your device screen. - ztan