Item Size and Line Spacing
Use the itemSize property to specify the default size for each onscreen item, like the small squares in Figure 10-1. The minimumLineSpacing and minimumInteritemSpacing properties specify how much space you need wrapped between objects within each section. Line spacing always goes between each line in the direction of flow. For example, line spacing refers to the space between S0(0) and S0(6) in Figure 10-1 (left) or between S0(0) and S0(4) in Figure 10-1 (right). Item spacing is orthogonal (at right angles) to lines, specifying the gap to leave between each consecutive item, such as between S0(0) and S0(1) and between S0(1) and S0(2).
Figure 10-2 shows these properties in action, in this case using a vertical flow. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access