Wrapcontent
Wrapcontent is a layout sizing behavior in user interface design where a component’s width and height are determined by the size of its content, rather than by fixed values or by the constraints of its parent. The term is most commonly encountered in Android development, where a view can specify layout_width and layout_height as wrap_content to request a size that fits its content after padding. In many codebases the attribute is written as wrap_content, though informal references may use wrapcontent.
When a view uses wrap_content, the system performs a measurement pass in which the parent supplies size
Advantages of wrapcontent include efficient use of space for small content and automatic adaptation to content
Across platforms the underlying idea exists under different names. Android uses wrap_content, iOS relies on intrinsicContentSize,