Layout Index

March 30, 2017 · View on GitHub

Type is a layout property in JSON

FlowLayout

typeDescription
1One column
2Two columns
3Three columns
4Four columns
9Five columns
27any column,assign by code or style in JSON

1-n layout (n=2/3/4)

A large element on the left ,several small element on the right,support assiging ratio of the left and right.

There are three styles of the layout:

  • A large element on the left,one above one below on the right.
  • A large element on the left,one above two below on the right.
  • A large element on the left,one above three below on the right.

Adjust depend on the count of itemModels in the layout

typeDescription
5One Drag N(N=2/3/4)

Drag Layout

The layout can be dragged, auto hit to edges

The No.0 element is in a drag layout.

typeDescription
7Drag Layout

Fix Layout

Fix at fixed position, or scroll to some position to show

The No.0 element is in a fix layout.

typeDescription
8Fix at top
23Fix at bottom
28Scroll to some layout to show and fix at top)

Sticky Layout

If the layout hit the top of visible area, it will stick to top edge of visible area.

The No.9 element is in a sticky layout

typeDescription
21Stick to top

Page Scroll Layout

Suitable for banner, it can auto scrolling , cycle scrolling or linear scrolling

typeDescription
10Page Scroll Layout

Water Flow Layout

typeDescription
25WaterFlow Layout