Roster
We now need to get the roster up and running; it will start to come together fairly easily as some of the components were used in the dashboard as well. Let's get the roster done next but before we do that, let's look at the design spec and see exactly what we need to do:
We only need to build out the header for this section because we already created the cards for the dashboard.
The header has a 3D stacking effect with team stats under the starting five. The starting five will always be centered, as will the stats, and when the screen gets smaller, the stats will scroll.
Looking at this design, we can break up the header into two pieces: the header (which contains the starting five) and the stats section, which scrolls. Let's start with the header part first.
RosterHeaderView
Let's get started by opening RosterHeaderView
first.
In the design, we see that the players' heads peek over the rounded...