Dapatkan CardView Background Color secara terprogram

private val cardView: CardView = itemView.findViewById(R.id.card_view)
cardView.setCardBackgroundColor(ContextCompat.getColor(context, R.color.your_color))
Ali G