Providing a background color for a child class of the map will leave parts filled in if the view of the map has any color, and this is not a good approach.
Dynamically change the color of the map as shown below, provided that you have an adapter to download the list as a map.
Viewholder
mCardView = (CardView) itemView.findViewById(R.id.card_view);
onBindViewHolder :
holder.mCardView.setCardBackgroundColor(Color.GREEN);
.