Android examples for Graphics:Random Color
random Color Argb
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static int randomColorArgb() { Random random = new Random(); int alpha = random.nextInt(70) + 30; int red = random.nextInt(150) + 50; int green = random.nextInt(150) + 50; int blue = random.nextInt(150) + 50; return Color.argb(alpha, red, green, blue); }// ww w . j a va2 s . c o m }