Five la s in Android and five la s in Android

Source: Internet
Author: User

Five la s in Android and five la s in Android

Layout1 and LinearLayout linear layout (can be nested): The linear layout is arranged horizontally by horizontal and vertically by verticaleg: Android: orientation = "horizontal" controls the display area of the content of the current control: eg: android: gravity = "right | center_vertical" controls the location of the current control in the parent element: eg: android: layout_gravity = "right" extra space allocation (weight): total additional space (under the <LinearLayout/> node) android: Layout_weightSumeg: android: layout_weightSum = "2" additional space allocated: (under the byte of the <LinearLayout/> node) Layout_weighteg: android: layout_weight = "1" controls whether the layout is displayed: visible, not displayed, but occupied space invisible, hidden (not occupied space) goneeg: android: visibility = "invisible" 2, relative layout of RelativeLayout: android: layout_centerVertical vertical center in parent layout android: layout_centerHorizontal horizontal center in parent layout android: layout_centerInParent center in parent layout eg: android: layout_centerHorizontal = "true" android: whether layout_alignParentLeft is left aligned with the parent layout android: layout_alignParentTop whether it is aligned with the parent layout top android: layout_alignParentRight whether it is right aligned with the parent layout android: layout_alignParentRight = "true" android: layout_toRightOf android: layout_toLeftOf on the right of the specified control on the left of the specified control android: layout_above on the top of the specified control android: layout_below on the bottom: android: layout_toLeftOf = "@ id/btn_center" android: layout_alignBaseline horizontal alignbaseline: android: layout_alignLeft: Left alignleft: android: layout_alignRight: layout_alignTop aligntop alignbottom aligntop: android: layout_alignTop = @ id/btn_center, <TableRow/> when the cell width in the cell row is smaller than the default width, the default value is fill_parent. The height can be customized to 2. The column number is ranked from 0 to 0, 2, 3 · android: shrinkColumns shrink column (set in <TableLayout/> to apply to the entire table) android: stretchColumns stretch column (set in <TableLayout/>, used in the entire table) android: collapseColumns hidden columns (set in <TableLayout/> for the entire table) eg: android: shrinkColumns = "0" when the row width is not enough, 0th columns automatically shrink narrow eg: android: collapseColumns = "0" Hide 0th columns android: layout_column specify the column in which the control is located (in <TableRow/>, android: layout_span specifies the number of columns that the control occupies in the row (set in <TableRow/> to apply to the control specified in the row ), the default value is 1 eg: android: layout_column = "2", which specifies that the controller is in the 2nd column of the row (subscript: 2) eg: android: layout_span = "2" indicates that the number of columns occupied by the control in this row is 24, and the absolute layout of AbsoluteLayout: android: layout_x specifies the X axis coordinate of the control in the parent layout. For example: android: layout_x = "30dp" android: layout_y specifies the Y axis coordinate of the control in the parent layout. For example: android: layout_y = "40dp" 5. FrameLayout frame layout: the newly added control overwrites the previous one, that is, each added control is displayed on the top.

Zookeeper

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.