I am fallowing a tutorial and have an error on color saying "color can not be resolved or is not a field". Anyone know the reason for this. Thanks.
lv.setBackgroundColor(callerActivity.getResources().getColor(R.color.Twitter_blue));
I am fallowing a tutorial and have an error on color saying "color can not be resolved or is not a field". Anyone know the reason for this. Thanks.
lv.setBackgroundColor(callerActivity.getResources().getColor(R.color.Twitter_blue));
You need to open "colors.xml" file under the "values" folder and add the color:
<color name="Twitter_blue">#FF4081</color>
with the relevant colour hex number.
Twitter_blue apparently is not a field in R.color have you tried just using R.color.blue or something similar?