title: Custom information in InfoWindow after pressing a marker using Map Cluster from Google Map utils
body: <p>I am trying to render a custom InfoWindow with different values for each marker using <code>MarkerCluster</code></p>
  
  <p>This is what i try:</p>
  
  <pre><code>private final GoogleMap.InfoWindowAdapter mInfoWindowAdapter = new GoogleMap.InfoWindowAdapter() {
          @Override
          public View getInfoWindow(Marker marker) {
              View window = null;
              if(getActivity()!=null&amp;&amp;isAdded()){
                  window = getActivity().getLayoutInflater().inflate(R.layout.map_objective_overlay, null);
                  final CustomFontTextView nameTV = (CustomFontTextView) window.findViewById(R.id.nameTV);
  
                  if(clickedClusterItem!=null){
                      System.out.println("You clicked this: "+clickedClusterItem.getName());
                  }else{
                      System.out.println("The clicked cluster item was nulllll");
                  }
                  if (clickedCluster != null) {
                      for (Objective item : clickedCluster.getItems()) {
                          // Extract data from each item in the cluster as needed
                          if(item.getRemoteId().equals(clickedClusterItem.getRemoteId())){
                              nameTV.setText(clickedClusterItem.getName());
                          }
                      }
                  }
              }
              return window;
          }
  
          @Override
          public View getInfoContents(Marker marker) {
              return null;
          }
      };
      private Objective clickedClusterItem;
      private Cluster&lt;Objective&gt; clickedCluster;
  
  @Override
      public void onResume() {
          super.onResume();
          preferences = getActivity().getSharedPreferences(Constants.PREFS_NAME, Context.MODE_PRIVATE);
          if (map == null) {
              map = fragment.getMap();
              mClusterManager = new ClusterManager&lt;Objective&gt;(getActivity(), map);
              map.setOnCameraChangeListener(mClusterManager);
              map.setOnMarkerClickListener(mClusterManager);
              latitude = Double.parseDouble(preferences.getString(Constants.LATITUDE, "0"));
              longitude = Double.parseDouble(preferences.getString(Constants.LONGITUDE, "0"));
              map.addMarker(new MarkerOptions()
                      .position(new LatLng(latitude, longitude))
                      .title("Hello " + preferences.getString(Constants.TOURIST_NAME, "tourist"))
                      .snippet("You are here")
                      .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_check_in)));
              map.setInfoWindowAdapter(mClusterManager.getMarkerManager());
              //mClusterManager.setRenderer(new ObjectiveClusterRenderer(getActivity(), map, mClusterManager));
              mClusterManager.getClusterMarkerCollection().setOnInfoWindowAdapter(mInfoWindowAdapter);
              mClusterManager.getMarkerCollection().setOnInfoWindowAdapter(mInfoWindowAdapter);
              map.setOnMarkerClickListener(mClusterManager);
  
              mClusterManager.setOnClusterClickListener(new ClusterManager.OnClusterClickListener&lt;Objective&gt;() {
                  @Override
                  public boolean onClusterClick(Cluster&lt;Objective&gt; cluster) {
                      clickedCluster = cluster; // remember for use later in the Adapter
                      return false;
                  }
              });
              mClusterManager.setOnClusterItemClickListener(new ClusterManager.OnClusterItemClickListener&lt;Objective&gt;() {
                  @Override
                  public boolean onClusterItemClick(Objective item) {
                      clickedClusterItem = item;
                      return false;
                  }
              });
  </code></pre>
  
  <p>And here i add the markers to the clustermanager:</p>
  
  <pre><code>public void setUpClusterer(List&lt;Objective&gt; objectivesList) {
          map.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 10));
          addItems(objectivesList);
      }
  
      private void addItems(List&lt;Objective&gt; objectiveList) {
          for (Objective anObjectiveList : objectiveList) {
              Objective offsetItem = new Objective();
              offsetItem.setRemoteId(anObjectiveList.getRemoteId());
              offsetItem.setName(anObjectiveList.getName());
              objectiveMap.put(offsetItem.getRemoteId(), offsetItem);
              System.out.println("This is the remote ID: " + offsetItem.getRemoteId());
              mClusterManager.addItem(offsetItem);
          }
      }
  </code></pre>
  
  <p>The layout for the <code>InfoWindow</code> is okay, but the content is null as <code>clickedClusterItem</code> and <code>clickedCluster</code> are always null...</p>
  
  <p>Any hints as to what I might be doing wrong?</p>
  
  <p>I saw some other answers that involved creating a Map with the marker and the corresponding object but I am not quite sure how to do that.</p>