Reputation: 51
How would I match this color exactly in my code? http://www.color-hex.com/color/ccccff
My code-
public static Color backColor = new Color(193f, 104f, 155f, 255f);
No matter what I do it will not match the back color like i'm trying to make it do. Keep in mind I am very new to this, and almost finished with my project. Thanks. It is for an android app.
Upvotes: 0
Views: 56
Reputation: 302
You can just use
Color.parseColor("#ccccff");
which will return the int color.
Upvotes: 1