为什么match_parent更换FILL_PARENT?match_parent、FILL_PARENT

2023-09-05 03:27:13 作者:深亡°

可能重复:

what在Android的 match_parent和FILL_PARENT属性之间的区别

what is the difference between match_parent and fill_parent property in android

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.

 
精彩推荐
图片推荐