Initializing the RowLayout is as easy as setting a few properties : type toggles between vertical and horizontal rows, while wrap controls whether the layout can create more than one row. 初始化RowLayout与设置RowLayout的几个属性一样容易:type用于在竖直列方向和水平行方向进行切换,而wrap控制布局是否能创建多个行。