I have following structure in a layout fragment.
FrameLayout (height: wrap content)
|
|--> LinearLayout (height: match parent)
| |
| |--> TextView (height: wrap content)
| |
| |--> SomeOtherView (height: wrap content)
|
|--> View (height: match parent)
The total height taken by this fragment is the height of TextView
and SomeOtherView
. My question is, because outermost FrameLayout
has height as wrap content and its children has height as match parent, wouldn't it create a dilemma on calculating the height? What is the rule which decides the height in this case?