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
: 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
For Android API 1.6 to 2.1 match_parent
will throw you an error, so use fill_parent in these cases. To support backward compatibility, it’s better to use fill_parent
I remember that Roman Guy (Android Developer at Google) said, that they have changed the name because "fill_parent"
was confusing for developers. As matter of the fact, "fill_parent"
does not fill the remaining space (for that you use the weight attribute) but it takes as much space as its layout parent. That’s why the new name is "match_parent"
21
solved difference between fill_parent and match_parent in android [duplicate]