Difference between revisions of "Android: LinearLayout"

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
 
Line 3: Line 3:
 
== Orientation ==
 
== Orientation ==
 
* Whether or not the LinearLayout represents a row or a column.
 
* Whether or not the LinearLayout represents a row or a column.
* Property
+
* Property:
<pre>
 
 
android:orientation
 
android:orientation
</pre>
+
* Values:
 +
vertical or horizontal
  
 
== Fill Model ==
 
== Fill Model ==

Latest revision as of 20:12, 21 March 2011

Five main areas of control

Orientation

  • Whether or not the LinearLayout represents a row or a column.
  • Property:

android:orientation

  • Values:

vertical or horizontal

Fill Model

Weight

Gravity

Padding