Commit 9ddbafcd authored by Dana Fried's avatar Dana Fried Committed by Commit Bot

Prefer Flex to Box layout in documentation.

This change lists the more declarative FlexLayout as the preferred
layout for horizontal and vertical arrangements of views and lists
BoxLayout as a predecessor.

It still recommends GridLayout for row-and-column situations.

Change-Id: Ibcb6ca3b3ec854b84ea8c2ed83cee693ab86c3f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237107
Commit-Queue: Wei Li <weili@chromium.org>
Reviewed-by: default avatarWei Li <weili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#778420}
parent 9b9dc2c8
......@@ -72,9 +72,12 @@ by the border's insets.
A View's **layout manager** defines how the View's child views should be laid
out within the View's content bounds. There are a few layout managers supplied
with Views. The simplest is [FillLayout], which lays out all a View's children
occupying the View's entire content bounds. Other commonly-used layouts managers
are [BoxLayout], which lays out all child views along an axis, and [GridLayout],
which provides a flexible row-and-column system.
occupying the View's entire content bounds. [FlexLayout] provides a CSS-like
layout for horizontal and vertical arrangements of views.
Other commonly-used layouts managers are [BoxLayout], a predecessor of
FlexLayout, and [GridLayout], which provides a flexible row-and-column
system.
### Painting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment