у меня такая же проблема, как эти темы: Fixed height of tableRow Android, How to force TableRows to have the same height? Но там я не нашел ответа ((( TableRow whis layout_width = «match_parent», layout_height = «0dp», андроид : layout_weight = "1", и каждый TableRow содержит несколько GridView Когда GridView пусто, все TableRow имеет такую же высоту, но если добавить элементы, первая строка становится выше Мой XML:..Как заставить TableRow иметь одинаковую высоту
<TableLayout
android:id="@+id/table"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/activity_padding"
android:clipChildren="false"
android:weightSum="2" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<GridView
android:id="@+id/gridView1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:numColumns="3" >
</GridView>
<GridView
android:id="@+id/gridView2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:numColumns="3" >
</GridView>
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<GridView
android:id="@+id/gridView4"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:numColumns="3" >
</GridView>
<GridView
android:id="@+id/gridView5"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:numColumns="3" >
</GridView>
</TableRow>
</TableLayout>
Спасибо !!!