什么是android中的布局装订线

时间:2016-10-18 17:55:58

标签: android android-layout viewgroup

ViewGroup类讨论了gutter。我知道gutter在英语中的含义,所以基于我有一些模糊的想法,他们在谈论什么。但我无法确定他们的意思。

1 个答案:

答案 0 :(得分:0)

我相信他们所讨论的上下文只是转储视图的一个区域。

In the example

  

以下是自定义ViewGroup的完整实现   实现一个简单的FrameLayout以及堆栈功能   左右排水沟的孩子们。

public class CustomLayout extends ViewGroup {
    /** The amount of space used by children in the left gutter. */
    private int mLeftWidth;

    /** The amount of space used by children in the right gutter. */
    private int mRightWidth;
}

所以他们所展示的例子是如何制作一个可以将儿童放在左侧或右侧的布局。他们选择称他们为#34;排水沟"。

然后在这个例子中,他们应该如何衡量左边的孩子" gutter"在右边"排水沟"。这意味着,在布局的左侧和布局的右侧指定了一个区域。

除此之外,这不是ViewGroups或任何其他布局中使用的常用术语。它用于描述他们在示例中构建的自定义ViewGroup