I have tried using the below solution but it didn\'t worked
https://stackoverflow.com/questions/32163918/programmatically-change-color-of-shape-in-layer-list
Here