The current location marker is always at the bottom of the screen while driving. To do this, we must install
map.setPadding(0,320,0,0);
So, we install pdding top on card 320, then it takes up some space at the top of the screen. In your last code like this
CameraPosition cameraPosition = new CameraPosition.Builder() .target(newLatLng) .zoom(18) .bearing(0) .tilt(0) .build(); map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); map.setPadding(0,320,0,0);
source share