MobileUI LogoMobileUI
/

LinearLayout


A Layout that arranges its children in a single column or a single row. The direction of the row can be set by setting the orientation attribute.

Usage

Two elements in a vertical layout
<LinearLayout width="fill_parent" orientation="vertical">
    <ImageView href="#{itemImage}" width="fill_parent" height="80dp"/>
    <TextView text="#{itemText}" width="fill_parent"/>
</LinearLayout>

Children

Views and/or Layouts

Attributes

NameTypeDefaultBindingDescription

Inherits all attributes from View and adds the following:

orientation

enum

horizontal

Determines the children’s orientation. Can be one of horizontal and vertical.


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.