// indicates that this text file is described in XML format
The namespace of the XML description file is the following URL
Android: layout_width = "fill_parent" // Fill up the entire Upper-layer space
Android: layout_height = "fill_parent" // Fill up the entire Upper-layer space
Android: orientation = "vertical"> // the layout of this interface is arranged vertically from top to bottom.
<Textview //Display text, which can be set to editable. textview is a complete text editor. The base class is configured as uneditable.
Android: layout_width = "fill_parent "//The width value fills the entire interface of linearlayout.
Android: layout_height = "wrap_content "//The height of textview varies with the number of lines in the text field.
Android: text = "@ string/Hello"/> //Display corresponding text
</Linearlayout>
For textview, see: http://developer.android.com/reference/android/widget/TextView.html
Built-in layout configuration for Android
name |
configuration method |
linearlayout |
linear layout configuration |
framelayout |
frame layout configuration |
tablelayout |
table layout configuration |
relativelayout |
relative location layout |