Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ public interface ClusterRenderer<T extends ClusterItem> {
* Called when the view is removed.
*/
void onRemove();

/**
* Called to determine the color of a Cluster.
*/
int getColor(int clusterSize);
}
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ private SquareTextView makeSquareTextView(Context context) {
return squareTextView;
}

protected int getColor(int clusterSize) {
@Override
public int getColor(int clusterSize) {
final float hueRange = 220;
final float sizeRange = 300;
final float size = Math.min(clusterSize, sizeRange);
Expand Down