<color name="green">#0000ff00</color>
这是代码:
int greenColor = getResources().getColor(R.color.green); String strGreenColor = "#"+Integer.toHexString(greenColor);