0

For so long im trying to understand the difference between match-parent and fill-parrent can any please explain it

DevUt
  • 1,280
  • 11
  • 24

3 Answers3

2

They are identical. It was a result of a name change by Google as fill_parent was misleading. See here: What is the difference between match_parent and fill_parent?

Community
  • 1
  • 1
McGuile
  • 818
  • 1
  • 11
  • 29
1

After API 8, FILL_PARENT was renamed as MATCH_PARENT. So , both are one and the same.

Official doc : http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.htmlenter link description here

Prabhuraj
  • 928
  • 2
  • 8
  • 14
0

There isn't one. At least from an technical point of view.

The google simply renamed it because it didn't reflect what it actually did - to fill it's parent view. Matching it's parent bounds is more appropriate.

I recommended to use the new one "match_parent" because the old one could be dropped by google at any time (although it is deprecated for a long time now).

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Ionut Negru
  • 6,186
  • 4
  • 48
  • 78