Skip to content Skip to sidebar Skip to footer

Issue With Android's Googlemap.cancelablecallback()

Given the following code: System.out.println('begin'); LatLng me=new LatLng(myLat,myLongt); MainActivity.this.googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(me,

Solution 1:

Implement delay for animate camera like below:

MainActivity.this.googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(me, 15), 1500, newGoogleMap.CancelableCallback()

Also,

returntrue;

It will make sure that the events are consumed.

Post a Comment for "Issue With Android's Googlemap.cancelablecallback()"