Android 表格布局中 控件高度不一致问题问题

2025-03-23 09:43:41
推荐回答(2个)
回答1:


android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="你好" />

android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="5" />

这个就可以解决你问题

回答2:

每一行单独用一个linearLayout试试