1: Example
This picture represents a group of clusters(the ones that have the text in the middle) and a cluster Item, which is only one item of a specific type.
What I'm trying to achieve is that on a cluster item, I want to add some text, for example "1", which represents that is only a cluster item, therefore there is only one item in there.
I managed to get the text working on the group of clusters but not on the cluster item.
The code that does the trick in my case it's this one:
String place = item.getPlaceName();
if (place.length() > 12)
place = place.substring(0, 10) + "..";
placeAddressAndLocation.setText(place);
Now I am not aware where should I place the exact code for the cluster item.
In the example found on google dev(which is the one I'm also following), there are a couple of methods for these
protected void onBeforeClusterItemRendered
protected void onClusterItemRendered
Tried adding the code on both of the methods, but it doesn't do anything. Any suggestions? Thanks!