在代码中写setTextColor(R.color.blue)不起作用,要这么写才起作用setTextColor(mContext.getResources().getColor(R.color.blue))