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
被弃用。 match_parent
应该使用。它们在功能上是等效的,唯一的区别是名称。 fill_parent
出了什么问题? ?我喜欢它。
最佳答案
错误在于它没有填充父级,而是使其具有与父级相同的尺寸,或者换句话说匹配父级尺寸。它填充父级的唯一情况是当 View 是布局中的单个 View 时。
关于android - 为什么match_parent取代了fill_parent?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10854717/