I am creating a custom component in HarmonyOS using Java SDK, Where I need to change Element color at runtime.
In Android we have setTint()
api to change color of drawable at runtime.
for ex:
drawable.setTint(Color.BLUE); //Require Api level 21
OR
DrawableCompat.setTint(drawable, Color.BLUE);
but, In HMOS I saw there is no any api like setTint()
or setColor()
to change color of Element.