1

How to center the camera to the top so that marker is at the top of screen? (Google map api V2 Android)

view story
linux-howto

http://stackoverflow.com – I have a similar problem like this How to center the camera so that marker is at the bottom of screen? (Google map api V2 Android) but I need it to center the camera below the actionbar. I've tried using the code from the answer above and added 300, but it doesnt work on smaller screen devices: public boolean onMarkerClick(final Marker marker) { //get the map container height LinearLayout mapContainer = (LinearLayout) findViewById(R.id.map_container); container_height = mapContainer.getHeight(); Projection projection = mMap.getProjection(); LatLng markerLatLng = new LatLng(marker.g (HowTos)