What parent container in android studio?
Here I am little confused that how match_parent works in android studio, like:
If I have my main layout than >> LinearLayout >> TextView....
Now I am using match_parent in TextView so how it will work, it will treat LinearLayout or Main Layout, as parent.
- 3 years ago
your LinearLayout is Parent in this case and The TextView is Child.
When you use match_parent it mean you want to extract your View till your Parent View, in this case, your Parent View Is LinearLayout so your TextView will expand as much as your LinearLayout take size on Mobile Screen.