# Switch Between Span Sizes | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/switch-between-span-sizes-raywenderlich-com/117729>\
**Category:** 🎓 Courses & Articles\
**Created:** [August 17, 2020, 10:42pm UTC](https://forums.kodeco.com/t/switch-between-span-sizes-raywenderlich-com/117729 "2020-08-17T22:42:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [August 17, 2020, 10:42pm UTC](https://forums.kodeco.com/t/switch-between-span-sizes-raywenderlich-com/117729/1 "2020-08-17T22:42:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nimai](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nimai/32/93665_2.png) [@nimai](https://forums.kodeco.com/u/nimai)\
**Post date:** [December 2, 2020, 11:48pm UTC](https://forums.kodeco.com/t/switch-between-span-sizes-raywenderlich-com/117729/2 "2020-12-02T23:48:49Z")

</div>

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)`
