Android Baseline tip, androidbaseline

Source: Internet
Author: User

Android Baseline tip, androidbaseline

Reprinted please indicate the source: http://blog.csdn.net/bbld_/article/details/40709353


Baseline Alignment



Android development problems (Code problems)

<LinearLayout // linear layout android: layout_width = "match_parent" // fill the width of the parent container android: layout_height = "0dip" // height. Use android with layout_weight below: layout_weight = "1" // weight of each child element for the remaining space. When either layout_width or layout_height is 0, it is proportional. For example, there are two LinearLayout values under this LinearLayout, so this LinearLayout accounts for 1/3 of the remaining space. If layout_width or layout_height is not 0, it indicates the priority, that is, a priority is displayed, A greater value indicates a higher priority. android: baselineAligned = "false" // whether to allow users to adjust the baseline of its content (NO) android: orientation = "horizontal" // layout direction (horizontal ), vertical> <include // include labels are usually used to extract the public part of the layout for other layout users to share android: id = "@ + id/carousel_tab_one" layout = "@ layout/carousel_tab"/> // The referenced layout file name, which is the same as <include android: id = "@ + id/carousel_tab_two" layout = "@ layout/carousel_tab"/> </LinearLayout>

In android, which layout can be used to set the position of the child control relative to the parent control?

Because there is sunlight outside, the temperature is higher than the room

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.