title: Changing position of Custom Info Window of GoogleMap Marker android
body: <p>I have added a custom InfoWindow to my GoogleMap object as below</p>
  
  <pre><code>      mMap.setInfoWindowAdapter(new InfoWindowAdapter() 
        {
              @Override
              public View getInfoContents(Marker marker) 
              {
                  return null;
              }
  
              @Override
              public View getInfoWindow(Marker marker) 
              {
                  View v = getLayoutInflater().inflate(R.layout.marker_info_window_layout,null,false);
                  TextView title = (TextView) v.findViewById(R.id.title);
                  TextView desc  = (TextView) v.findViewById(R.id.desc);
                  TextView level = (TextView) v.findViewById(R.id.level);
                  final int position = Integer.valueOf(marker.getSnippet());
  
                  Players player = playersArray.get(position);
                  title.setText(player.name);
                  level.setText("Level " + String.valueOf(player.level));
                  return v;
              }
  </code></pre>
  
  <p>Works good. However I the arrow tip of my layout is quite far from marker. So i want to add an offset of, let us say 50px at least.</p>
  
  <p>According to the documentation given here</p>
  
  <p><a href="https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions" rel="nofollow">https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions</a></p>
  
  <p><em><code>anchorPoint : The offset from the marker's position to the tip of an InfoWindow that has been opened with the marker as anchor.</code></em></p>
  
  <p>However When i do this </p>
  
  <pre><code>mMap.addMarker(new MarkerOptions()
           .position(p)
           .anchor(0,50)
           .snippet(String.valueOf(position))
           .draggable(false)
           .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));
  </code></pre>
  
  <p>Markers just disappear and don't even show..
  What is wrong? Without anchor option they work fine.</p>