A
Android Central Question
a TextViewwith the width wrap_content just get flexible with the content. However when we have a root layout e.g linearlayout with the width match_parent or wrap_content then the TextView width (equals to wrap_content ) acts differently. Instead of holding the space around the content it holds the full width of the screen regardless of its content