Android examples for Graphics:Color Value
Generate random Color from random RGB value
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static int randomColor() { Random random = new Random(); return Color.argb(255, random.nextInt(256), random.nextInt(256), random.nextInt(256));/*from w w w . j av a2 s .c om*/ } }