My application displays the userβs managed route. After a few seconds, the card will stop loading new content and looks like this: 
My code: XML
<fragment xmlns:android="http://schemas.android.com/apk/res/android" class="com.google.android.gms.maps.SupportMapFragment" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" map:cameraZoom="19" android:layout_below="@+id/tracking_maps_colorgradient"> </fragment>
Java:
float zoom = 18;//googleMap.getCameraPosition().zoom; LatLng latLng = new LatLng(lastLatitude, lastLongitude); locations.add(latLng); CameraPosition pos = new CameraPosition.Builder() .target(latLng) .bearing(bearing) .zoom(zoom) .tilt(googleMap.getCameraPosition().tilt) .build(); googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(pos)); Polyline p = googleMap.addPolyline(new PolylineOptions() .add(latLng) .width(15) .color(Color.RED) .geodesic(true)); p.setPoints(locations);
Is there any way to cancel the card?
Thank you for your help!
iTamp source share