Create Color from R G B value - Android android.graphics

Android examples for android.graphics:Color

Description

Create Color from R G B value

Demo Code

import android.content.Context;
import android.graphics.Color;
import java.text.DecimalFormat;

public class Main{

    public static int getHeaderColor() {
        return Color.rgb(169, 198, 236);
    }/*  w  ww.  j  ava 2 s .c  o  m*/

}

Related Tutorials