为什么match_parent更换FILL_PARENT? [英] Why did match_parent replace fill_parent?

查看:142
本文介绍了为什么match_parent更换FILL_PARENT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:

<一个href="http://stackoverflow.com/questions/5761960/what-is-the-difference-between-match-parent-and-fill-parent-property-in-android">what在Android的 match_parent和FILL_PARENT属性之间的区别

what is the difference between match_parent and fill_parent property in android

<一个href="http://stackoverflow.com/questions/8516825/is-de$p$pcated-word-the-only-difference-between-fill-parent-and-match-parent">Is德precated字FILL_PARENT之间的唯一区别和match_parent

FILL_PARENT 成为德precated。 match_parent 应该使用。它们是功能上等同的,唯一不同的是名称。什么是错的 FILL_PARENT ?我喜欢它。

fill_parent become deprecated. match_parent should be used instead. They are functionally equivalent, the only difference is name. What was wrong with fill_parent? I liked it.

推荐答案

什么是错的,它并没有的填写的父,而是使其具有相同的尺寸为父母,或在换言之的匹配的父维度。唯一的情况下,它的填写的母公司是当视图是单一​​的布局。

What was wrong is that it does not fill the parent, but instead make it have the same dimension as the parent, or in other words match the parent dimension. The only case in which it does fill the parent is when the view is the single one in the layout.

这篇关于为什么match_parent更换FILL_PARENT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆