Common Layout of Android linearlayout and vertical layout of linearlayout
You can use linearlayout to complete such a layout, which is usually used. The specific xml Code is as follows:
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
Android: orientation = "vertical">
<LinearLayout
Android: layout_width = "match_parent"
Android: layout_height = "wrap_content"
Android: orientation = "horizontal"
Android: layout_weight = "1">
<Button
Android: id = "@ + id/button1"
Style = "? Android: attr/buttonStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: text = "Button"/>
<LinearLayout
Android: layout_width = "fill_parent"
Android: layout_height = "match_parent"
Android: gravity = "right">
<Button
Android: id = "@ + id/button2"
Style = "? Android: attr/buttonStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: text = "Button"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
Android: layout_width = "match_parent"
Android: layout_height = "wrap_content"
Android: gravity = "center"
Android: layout_weight = "1">
<Button
Android: id = "@ + id/button3"
Style = "? Android: attr/buttonStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: text = "Button"/>
</LinearLayout>
<LinearLayout
Android: layout_width = "match_parent"
Android: layout_height = "wrap_content"
Android: layout_weight = "1"
Android: gravity = "bottom"
>
<LinearLayout
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: orientation = "horizontal"
>
<Button android: id = "@ + id/button4" style = "? Android: attr/buttonStyleSmall "android: layout_width =" wrap_content "android: layout_height =" wrap_content "android: text =" Button "/> <LinearLayout
Android: layout_width = "fill_parent"
Android: layout_height = "match_parent"
Android: gravity = "right">
<Button
Android: id = "@ + id/button5"
Style = "? Android: attr/buttonStyleSmall"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: text = "Button"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>