Layout

1.Layout

    Layout is used to control the size and the location of child controls under a composite. Generally, the layout is set on the composite control, and the corresponding layout data is set on the child control. The layout data should be consistent with the layout type, otherwise an exception will be thrown.

    The common layout is as follows:

  • FillLayout
    Fill the entire parent control, the child control does not need to set the layout data.
  • GridLayout
    GridLayout is similar to table in HTML. The data corresponding to GridLayout is GridData.
  • RowLayout
    By row or column layout, the data used is RowData.
  • StackLayout
    The layout of only one child node is displayed at a time, without layout data.

    Unusual layouts:

  • FormLayout
    For FormLayout, xworker has hardly used it. The layout data used is FormData.

 2.Video

    The following video briefly shows how to set up the layout.

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号