I have a custom PieChart View, right now I'm setting a random color for each pie in a for loop with
color = Color.argb(100, r.nextInt(256), r.nextInt(256), r.nextInt(256));
pie.addItem(PieName, PieValue, color);
As you can imagine i get strange colors sometimes, or nearly same colors. So now I'm thinking about using certain colors, how can I set some colors like blue, green, red, yellow... then use one of them for every pie in for loop?