What is the difference between match_parent and fill_parent?

后端 未结 17 2008
离开以前
离开以前 2020-11-22 07:37

I\'m a little confused about two XML properties: match_parent and fill_parent. It seems that both are the same. Is there any difference between the

17条回答
  •  猫巷女王i
    2020-11-22 08:15

    For compatibility sake it's better to stick to fill_parent, i.e, when supporting below API 8 devices. But if your app targets API 8 and upwards, you should use match_parent instead.

提交回复
热议问题