forum

Home / DeveloperSection / Forums / How to change alpha color object?

How to change alpha color object?

Anonymous User168507-Nov-2014
Is there a way to add aplha to color that i can get from a color string. Because now i can draw my color without the alpha by using the following code

CircleOptions options = new CircleOptions().center(new LatLng(car.getLatitude(), car.getLongitude()))
.radius(car.getRadius())
.strokeColor(Color.argb(50, 232, 245, 248))
.strokeWidth(2)
.fillColor(Color.parseColor(car.getColorString()));

This works fine. But i want to make the color more transparent. Is there a good way to add alpha do this color because i can only get out a "ColorString"


Updated on 07-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By