2

Possible Duplicate:

What is the difference between match_parent and fill_parent?

Is deprecated word the only difference between fill_parent and match_parent

fill_parent become deprecated. match_parent should be used instead. They are functionally equivalent, the only difference is name. What was wrong with fill_parent? I liked it.

Community
  • 1
  • 1
fhucho
  • 34,062
  • 40
  • 136
  • 186

2 Answers2

2

What was wrong is that it does not fill the parent, but instead make it have the same dimension as the parent, or in other words match the parent dimension. The only case in which it does fill the parent is when the view is the single one in the layout.

K-ballo
  • 80,396
  • 20
  • 159
  • 169
0

match_parent means that the child wants to be as big as the parent...maybe they wanted to make it sound more realistic?

Wolfen
  • 380
  • 1
  • 5
  • 18