Recently I've seen appeared a lint error in my code:
Should pass resolved color instead of resource id here:
getResources().getColor(R.color.maps_list_background_color)
MyClass.java /myapp/android/maps line 107 Android Lint Problem
I know how to resolve it the answer is in the error, the thing is I don't get why they have added this error in the linter.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…