This question already has answers here:
What's the difference between fill_parent and wrap_content?
(4个答案)
7年前关闭。
我是新手,我会说
(4个答案)
7年前关闭。
我是新手,我会说
width = "fill_parent"
和width = "wrap_content"
有什么区别? 最佳答案
fill_parent
将使元素的宽度或高度与父元素(即容器)一样大。wrap_content
将使宽度或高度与包含其中的元素所需的一样大。