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_l
Since getResources().getColor() is deprecated, you need to do this to get the color:
getResources().getColor()
int color = ContextCompat.getColor(getContext(),your_color_id);
Now you have the color with respect to the current context Set the color using:
your_view.setBackgroundColor(color);