What is the difference between match_parent and fill_parent?

Matt Ball answered in stackoverflow. which is got more upvoted.
    They're the same thing (in API Level 8+). Use match_parent.

    FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
or
fill_parent (renamed match_parent in API Level 8) tells your view to become as big as its parent view group will allow
    fill_parent: The view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.

this also defined in official android site: developer.android.com/reference/android/view/ViewGroup.LayoutParams.html
What is the difference between match_parent and fill_parent? What is the difference between match_parent and fill_parent? Reviewed by D Kshetri on 10:46 PM Rating: 5

No comments:

Powered by Blogger.