Some special colors could be stowed in resources. In this case solution could be:
view.setTextColor(getColor(R.color.orange))