android - 为什么match_parent取代了fill_parent?

标签 android

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/

相关文章:

Android Data Binding疑惑

android - 可以显示表格的网格吗?

android - 如何保存系统重启时将被删除的临时数据

java - 为什么使用 Intent 后会出现此错误?

c# - MVVM Light Binding SeekBar 的进展

android - 用GDB远程调试纯C程序

android - 如何在android lollipop中创建文件夹内部存储

android - 确定触摸输入消费者

android - "Sign in to Wi-Fi Network"在 Android 设备上永远不会发生,但重定向工作正常

android - 改造和 Moshi : how to handle com. squareup.moshi.JsonDataException