<fragment android:id="@+id/streetview" android:name= "com.google.android.gms.maps.StreetViewPanoramaFragment" android:layout_width="match_parent" android:layout_height="match_parent"/>
streetViewPanorama.setPosition(targetLatLng); StreetViewPanoramaCamera camera = new StreetViewPanoramaCamera(zoom, tilt, bearing); mStreetViewPanorama.animateTo(camera, duration);