• Latest Code...

    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)
    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

    No comments:

    Post a Comment


    Most recent Elastic Search tutorials for beginner, intermediate and advance level developer, Yubraj Pokharel, in CodingWorkspace