Switch Between Span Sizes | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/9261744-beginning-recyclerview/lessons/17

I noticed the cardCornerRadius was not working. This is caused when setting the background color, the background colour bleeds out from the corner radius and fills the original rectangle. This is fixed by changing itemView.creatureCard.setBackgroundColor(backgroundColor) to itemView.creatureCard.setCardBackgroundColor(backgroundColor)