title: How to show ListViews with the Items in the Cluster Google Maps Utils
body: <p>I want to add the items from Clusters and onClusterClick I want to show them in ListView. How can I add those items to the listView and show when in an overlay listview within the same Activity.</p>
  
  <pre><code>@Override
      public boolean onClusterClick(Cluster&lt;MapPosts&gt; cluster) {
          // Show a toast with some info when the cluster is clicked.
          maparraylist = new ArrayList&lt;&gt;(cluster.getSize());
          try {
              for (MapPosts posts : cluster.getItems()) {
                  String firstName = posts.name;
                  String thumbNail = posts.profilePhoto;
                  MapModel map = new MapModel();
                  map.setName(firstName);
                  map.setThumbs(thumbNail);
                  maparraylist.add(map);
                  Toast.makeText(CustomClustering.this,String.valueOf(maparraylist.size()),Toast.LENGTH_SHORT).show();
              }
          } catch (Exception e){
              e.printStackTrace();
          } 
         Intent intent = new Intent(ClusteringActivity.this, MapsListActivity.class)
      }
  </code></pre>
  
  <p>Here is the adapter class I am using to load into GridView</p>
  
  <pre><code>Context context;
      LayoutInflater inflater;
      private List&lt;MapModel&gt; maparraylist = null;
      private ArrayList&lt;MapModel&gt; arraylist;
  
      public MapsListAdapter(Context context, List&lt;MapModel&gt; maparraylist) {
          this.context = context;
          this.maparraylist = maparraylist;
          inflater = LayoutInflater.from(context);
          this.arraylist = new ArrayList&lt;MapModel&gt;();
          this.arraylist.addAll(maparraylist);
      }
  
      public class ViewHolder {
          ImageView thumbs;
          TextView name;
      }
  
      @Override
      public int getCount() {
          return maparraylist.size();
      }
  
      @Override
      public Object getItem(int position) {
          return maparraylist.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      public View getView(final int position, View view, ViewGroup parent) {
          final ViewHolder holder;
          if (view == null) {
              holder = new ViewHolder();
              view = inflater.inflate(R.layout.feeds_layout, null);
              // Locate the ImageView in gridview_item.xml
              holder.thumbs = (ImageView) view.findViewById(R.id.videoThumb);
              holder.name = (TextView) view.findViewById(R.id.grid_item_title);
              view.setTag(holder);
          } else {
              holder = (ViewHolder) view.getTag();
          }
          // Load image into GridView
          Picasso.with(context)
                  .load(maparraylist.get(position).getThumbs())
                  .transform(new CircleTransform())
                  .resize(200,200)
                  .centerCrop()
                  .into(holder.thumbs);
          holder.name.setText(maparraylist.get(position).getName());
  </code></pre>
  
  <p>This is the ListActivity</p>
  
  <pre><code>  GridView gridview;
      MapsListAdapter adapter;
      private List&lt;MapModel&gt; maparraylist = null;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          // Get the view from gridview_main.xml
          setContentView(R.layout.feeds_layout);
          // Execute RemoteDataTask AsyncTask
          gridview = (GridView) findViewById(R.id.gridview);
          // Pass the results into ListViewAdapter.java
          adapter = new MapsListAdapter(MapsListView.this,
                  maparraylist);
          // Binds the Adapter to the ListView
          gridview.setAdapter(adapter);
      }
  }
  </code></pre>