Android CardView doesn’t set the correct colors

there is an issue with my CardView, I have it in a RecyclerView, everything is working well but the color that I set for the CardViews aren’t the same that I chose


Given the color it seems you might be passing in a color resource ID instead of a color int, try resolving the color with:

ContextCompat.getColor(context, thisObject.getColor())

Leave a Reply

Your email address will not be published. Required fields are marked *