第一季

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

fill_parent   -1  The view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.  


match_parent   -1 The view should be as big as its parent (minus padding). Introduced in API Level 8.  

wrap_content   -2  The view should be only big enough to enclose its content (plus padding).  

 

从Android 2.2开始FILL_PARENT改名为MATCH_PARENT ,定义本质是一样均为-1,只是换了个别名。

 

参考文章:

http://blog.csdn.net/junjieking/article/details/7067855

http://blog.sina.com.cn/s/blog_4ca9ceef0100zwc9.html

 

 

posted on 2013-07-26 11:30  第一季  阅读(367)  评论(0编辑  收藏  举报