Closed zohouri closed 4 years ago
"BE2109"
isn't enough. You need #
in front of the HEX code.
Try fill.setFillColor(Color.parseColor("#BE2109"));
fillManager.addClickListener(new OnFillClickListener() {
@Override
public boolean onAnnotationClick(Fill fill) {
fill.setFillColor(Color.parseColor("#BE2109"));
fillManager.update(fill);
return false;
}
});
I tried this code to change polygon fillColor in onAnnotationClick, but its not working right!
fillManager.addClickListener(new OnFillClickListener() { @Override public void onAnnotationClick(Fill fill) { fill.setFillColor("BE2109"); fillManager.update(fill); } });
before click: after click (It should be red not gray):