【问题标题】:XML properties: match_parent and fill_parent. It seems that both are the same. Is there any difference between them? [duplicate]XML 属性:match_parent 和 fill_parent。似乎两者都是一样的。它们之间有什么区别吗? [复制]
【发布时间】:2017-12-06 07:39:52
【问题描述】:

我已将我的 API 降级为 7,但无法弄清楚 match_parent 和 fill_parent 在长度或宽度方面的填充或大小差异

【问题讨论】:

    标签: android


    【解决方案1】:

    FILL_PARENT 已重命名为 MATCH_PARENT 用于 API 级别高于 8 以避免开发人员的混淆

    【讨论】:

    • ... to avoid the confusion ... 嗯,看来这句话应该是... to add confusion ...
    【解决方案2】:

    FILL_PARENT(在 API 级别 8+ 中重命名为 MATCH_PARENT)
    https://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html

    【讨论】:

      猜你喜欢
      • 2011-08-11
      • 2012-06-29
      • 2013-04-02
      • 2019-09-28
      • 2012-01-20
      • 1970-01-01
      • 2016-09-05
      • 1970-01-01
      • 2014-03-20
      相关资源
      最近更新 更多