【发布时间】:2015-11-23 10:18:26
【问题描述】:
我在布局片段中有以下结构。
FrameLayout (height: wrap content)
|
|--> LinearLayout (height: match parent)
| |
| |--> TextView (height: wrap content)
| |
| |--> SomeOtherView (height: wrap content)
|
|--> View (height: match parent)
这个片段的总高度是TextView和SomeOtherView的高度。我的问题是,因为最外层的FrameLayout 具有高度作为包装内容,其子级具有高度作为匹配父级,它不会在计算高度时造成两难境地吗?在这种情况下,决定高度的规则是什么?
【问题讨论】:
标签: android