Android's Layout_alignbottom failure problem

Source: Internet
Author: User

Outside is a layer of relativelayout, the front text and the back button are set centerparent_vertical, the second hello is required to align with the first bottom, although set Alginbottom point to the first Hello, But actually, as shown, the effect is not achieved.

The reason is because the height of the outer layout is set to Wrap_content, only set a fixed value can be aligned, even if some of the network said to be set to Marth_parent is useless. (http://www.cnblogs.com/AsionTang/p/4029446.html)

And if the two font size is not the same, the visual effect is still not aligned Oh! The offset needs to be corrected.

    

Android's Layout_alignbottom failure problem

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.