Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: match_parent 和 fill_parent 有什么区别? 不推荐使用的单词是fill_parent和match_parent之间的唯一区别
可能重复:
match_parent 和 fill_parent 有什么区别?
不推荐使用的单词是fill_parent和match_parent之间的唯一区别
fill_parent被弃用。match_parent应改为使用。它们在功能上是等效的,唯一的区别是名称。出了什么问题fill_parent?我喜欢它。
fill_parent
match_parent
错误在于它没有填充父级,而是使其具有与父级相同的维度,或者换句话说与父级维度匹配。它填充父级的唯一情况是视图是布局中的单个视图。
match_parent意味着孩子想要和父母一样大……也许他们想让它听起来更真实?