Java tutorial
//package com.java2s; import android.graphics.Color; public class Main { public static int getEdgeColor(int color) { String reflectColorStr = Integer.toHexString(color); String rgbStr = reflectColorStr.substring(2); return Color.parseColor("#00" + rgbStr); } }