In Android, "wrap content" will wrap the view's size so that it will be just big enough to enclose its content. Use this tag for issues related to this layout param (whether on XML Layout or programmatically)
There are 3 possible values when deciding the size of a view:
- Wrap content (XML:
wrap_content
, code:WRAP_CONTENT
) - Match parent (XML:
match_parent
, code:MATCH_PARENT
) - Exact number
"Wrap content" will wrap the view's size so that it will be just big enough to enclose its content.
Demonstration on Suragch's answer for the difference between "wrap content" and "match parent"
See also: