title: Custom infowindow with multiple markers in navigation drawer
body: <p>After all, I've been searching this for hours and nothing could help me...</p>
  
  <p>I want to add a custom info window in multiple markers in Google Map API v2 for Android.</p>
  
  <p>I have this in a navigation drawer, and I've tried a lot of things with null results.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class ShopLocator extends Fragment {
  MapView mapView;
  GoogleMap googleMap;
  
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  {
      View view = inflater.inflate(R.layout.shop_locator, container, false);
  
      mapView = (MapView) view.findViewById(R.id.map);
  
      mapView.onCreate(savedInstanceState);
  
      if(mapView!=null) {
  
          Toast.makeText(getActivity(), "For a better performance of the shop locator, we recommend to activate the GPS", Toast.LENGTH_LONG).show();
  
          googleMap = mapView.getMap();
  
          googleMap.getUiSettings().setMyLocationButtonEnabled(true);
  
          googleMap.setMyLocationEnabled(true);
  
          googleMap.getUiSettings().setZoomControlsEnabled(true);
  
          final Location[] mLocation = {null};
          googleMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {
              public void onMyLocationChange(Location location) {
  
                  CameraUpdate center = CameraUpdateFactory.newLatLng(new LatLng(location.getLatitude(), location.getLongitude()));
                  CameraUpdate zoom = CameraUpdateFactory.zoomTo(8);
  
                  if (mLocation[0] == null) {
                      mLocation[0] = location;
                      googleMap.moveCamera(center);
                      googleMap.animateCamera(zoom);
                  }
  
              }
          });
  
      }
  
      return view;
  }
  }
  </code></pre>