android get color from resource 2020 code example Example: getcolor deprecated ContextCompat.getColor(context, R.color.color_name)