top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between match_parent and fill_parent?

+2 votes
350 views

What is the difference between match_parent and fill_parent?
Both are same thing and are different name in different API version.

posted Jun 8, 2017 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Hi Karthick
Both are the same thing which is fill_parent is renamed as match_parent to avoid confusion in api level 8+.

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

from this official docs link: https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#FILL_PARENT

answer Jun 10, 2017 by Shivam Kumar Pandey
Thank you for selecting as best answer.
...