Adroid学习笔记

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/sophie0308/article/details/9295347

1. fill_parent和match_parent的区别?

从API level 8开始,fill_parent过时了,用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).  

2. 

展开阅读全文

没有更多推荐了,返回首页