Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between "fill_parent" and "wrap_content" [duplicate]

I'm new to this, I would say what is the difference between width = "fill_parent" and width = "wrap_content"?

like image 402
Yost_RC Avatar asked Sep 04 '26 14:09

Yost_RC


1 Answers

fill_parent will make the width or height of the element to be as large as the parent element, in other words, the container.

wrap_content will make the width or height be as large as needed to contain the elements within it.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!