java代码里设置指定颜色常值

text1.setTextColor(Color.parseColor("#ff27ffed"));

原文地址:https://www.cnblogs.com/wjhblogs/p/4396286.html