The difference between match_parent and fill_parent?

Source: Internet
Author: User

Many people say that many projects in the match_parent appear in the layout is not clear, in the past only fill_parent and wrap_content so match_parent exactly what type? In fact, from the beginning of Android 2.2 fill_parent renamed Match_parent, from the API level of 8 we can directly use match_parent instead of fill_parent, finally Android123 remind you, Their definition is essentially the same as-1, just a different alias, perhaps to be more accurate, such as the final definition in the SDK is:

Fill_parent-1 The view should is as big as its parent (minus padding). This constant are deprecated starting from API Level 8 and are replaced by match_parent.
Match_parent-1 The view should is as big as its parent (minus padding). Introduced in API level 8.
Wrap_content-2 The view should is only a big enough to enclose its content (plus padding).

The difference between match_parent and fill_parent?

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.