首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Android中的FILL_PARENT与WRAP_CONTENT的差异

2012-06-30 
Android中的FILL_PARENT与WRAP_CONTENT的区别Android中的FILL_PARENT与WRAP_CONTENT的区别??FILL_PARENT?S

Android中的FILL_PARENT与WRAP_CONTENT的区别

Android中的FILL_PARENT与WRAP_CONTENT的区别

?

?

FILL_PARENT

?

Special value for the height or width requested by a View. FILL_PARENT means that the view wants to be as big as its parent, minus the parent's padding, if any. This value is deprecated starting in API Level 8 and replaced by MATCH_PARENT.

?

fill_parent布局指将视图扩展以填充所在容器(也就是父容器)的全部空间。


WRAP_CONTENT

?

Special value for the height or width requested by a View. WRAP_CONTENT means that the view wants to be just large enough to fit its own internal content, taking its own padding into account.

?

wrap_content布局指根据视图内部内容自动扩展以适应其大小。

?

?

热点排行