GridLayout
A layout that places its children in a rectangular grid.
The grid is composed of a set of infinitely thin lines that separate the viewing area into cells. Throughout the API, grid lines are referenced by grid indices. A grid with N columns has N + 1 grid indices that run from 0 through N inclusive. Regardless of how GridLayout is configured, grid index 0 is fixed to the leading edge of the container and grid index N is fixed to its trailing edge (after padding is taken into account).
网格布局详解:GridLayout的网格结构与索引理解
本文详细解读了GridLayout组件如何组织子视图成矩形网格,介绍了网格线的索引体系,并着重说明了起始和结束网格索引的固定位置。无论GridLayout配置如何,理解这些概念有助于更高效地使用该布局方式。
1万+

被折叠的 条评论
为什么被折叠?



