【发布时间】:2017-11-30 21:37:02
【问题描述】:
我正在添加更多不需要的虚假详细信息,因为 stackoverflow.com 坚持这样做........ aaaand 它拒绝发布我的问题
所以我正在构建 3 个相等的框元素,但是:
当我添加 <TextView/> 时,布局停止工作......为什么会这样?
<TableLayout
android:layout_width="match_parent"
android:layout_height="74dp"
android:background="@color/sevenBlack" >
<TableRow
android:layout_height="match_parent"
android:weightSum="3">
<View
android:layout_height="match_parent"
android:layout_weight="1">
<!-- WTF!!! -->
<TextView android:text="Hello there"/>
</View>
<View
android:layout_height="match_parent"
android:layout_weight="1"></View>
<View
android:layout_height="match_parent"
android:layout_weight="1"></View>
</TableRow>
</TableLayout>
【问题讨论】: