ClusterIconProvider clusterIconProvider = new ClusterIconProvider(getResources());
ClusteringSettings clusteringSettings = new ClusteringSettings()
.clusterOptionsProvider(clusterIconProvider)
.addMarkersDynamically(true);
mMap.setClustering(clusteringSettings);