What is the difference between match_parent and fill_parent ?
2 answers
match_parent = fill_parent. The first property should be used in new projects, the second property is considered obsolete and left for compatibility purposes.
- fill_parent should be specified if compatibility with API8 and below is required, otherwise - match_parent, their action is the same and they have the same value of the constant -1 - pavlofff
|
Fill_parent is outdated and does not see it on the new firmware, most often completely crosses out. Fill_parent = Match_parent both give an extension to the edges of the screen. If android: layout_width = "match_parent", then from one edge of the screen to the other edge
wide android: layout_height = "match_parent" then tall
- Not to the edges of the screen, but to fill the entire space of the parent container - this container may not occupy the entire screen - pavlofff
|