top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the difference between match_parent and fill_parent?

+2 votes
64 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 Google+ Share Button LinkedIn Share Button Multiple Social 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.
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...