Android examples for Graphics:Color Operation
generate Beautiful Color
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static int generateBeautifulColor() { Random random = new Random(); int red = random.nextInt(150) + 50;//50-200 int green = random.nextInt(150) + 50;//50-200 int blue = random.nextInt(150) + 50;//50-200 return Color.rgb(red, green, blue); }/* w w w .j a v a2s . c o m*/ }