layout.layout.Linear


new layout.layout.Linear()

Superclass for the linear vertical and linear horizontal layout.

Use the orientation attribute to choose between horizontal and vertical.

For dynamic sized child views, use the weight attribute instead of height/width.

The reserved words matchParent and wrap can be used for height when rendered vertically, and
width when rendered horizontally. matchParent means same size as parent, while wrap will use
minimum width/height.

Source:
Example
layout:{
		type:'linear',
		orientation:'vertical',
		height:'matchParent', width:'matchParent'	
},
children:[
	{ html: 'First view', layout: { height: 30 }},
	{ html: 'Second View', layout: { weight: 1 }}
]