0
我有以下的基本XML:的TableRow increseas它
<?xml version="1.0" encoding="utf-8"?>
<TableRow
android:background="#FF0000"
android:layout_weight="0.8">
<TextView
android:text="Bottom menu" />
</TableRow>
<TableRow
android:background="#0000FF"
android:layout_weight="0.2">
<Button
android:text="Prev"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
模擬器上的TableRow的高度爲3cm左右,如果我改變了按鈕到一個TextView,它將是2.5釐米。有人可以解釋爲什麼TableRow自動增加大小?