title: Android GoogleMap -.scrollby does not work properly
body: <p>I am relatively new to Android (using Eclipse) and I am trying to play around with an application that uses a googlemap. I have the map working in my mobile app and have placed a marker with a title at the location.</p>
  
  <p>My problem is that I only have a small area for the map to show, which when the location is centered, kinda cuts the title off some. I just want to scroll (pan) the map a tiny bit to allow for the title to be seen clearly and a bit more centered. But I cannot seem to get this to work. Here is what I have so far:</p>
  
  <pre><code>public class Single extends FragmentActivity {
  
  private GoogleMap mMap;
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.single); 
  }
  
   private void setUpMapIfNeeded() {
  
          if (mMap == null) {
              mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
                      .getMap();
  
              if (mMap != null) {
                  setUpMap();
              }
          }
      }
  
   private void setUpMap() {
  
       LatLng coordinate = new LatLng(myLatitude, myLongitude);
       CameraUpdate yourLocation = CameraUpdateFactory.newLatLngZoom(coordinate, 10);
       mMap.animateCamera(yourLocation);
  
       mMap.addMarker(new MarkerOptions().position(new LatLng(myLatitude, myLongitude)).title("This is a test title").showInfoWindow();
  
   } }
  </code></pre>
  
  <p>The above code works fine but gives me the following map:</p>
  
  <p><a href="http://www.webonepro.com/2.png" rel="nofollow">http://www.webonepro.com/2.png</a></p>
  
  <p>Note that the title is nearly cut off a bit. What I really want to do is pan/scroll the map a tiny bit to get the following:</p>
  
  <p><a href="http://www.webonepro.com/1.png" rel="nofollow">http://www.webonepro.com/1.png</a></p>
  
  <p>If I try to add in the following code, it moves the map to a default area that no longer shows the marker, rather Africa I believe:</p>
  
  <pre><code>mMap.animateCamera(CameraUpdateFactory.scrollBy(0, 10));
  </code></pre>
  
  <p>Does anyone know what I am doing wrong? Shouldn't I be able to adjust the map up or down a little?</p>
  
  <p>Thanks,</p>
  
  <p>Tom </p>