如标题所示,我有一个列表视图,行中包含多行的textview。 由于它有多条线,它的行为就像图片展示一样。Android - 列表视图中包含多行textview的行
基本上它应该只显示第一行,但是会发生的是下面的行正在推高。 这只发生在冰淇淋三明治和果冻豆。在姜面包看起来不错。
下面是该行的XML代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main_list_row"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_yyyy"
android:gravity="center"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".14"
android:textSize="15sp" />
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_dd"
android:gravity="center"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".11"
android:textSize="15sp" />
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_mm"
android:gravity="center"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".11"
android:textSize="15sp" />
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_state"
android:gravity="center"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".13"
android:textSize="15sp" />
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_pu"
android:gravity="center"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".11"
android:textSize="15sp" />
<TextView
android:focusableInTouchMode="false"
android:clickable="false"
android:focusable="false"
android:id="@+id/item_detailes"
android:paddingLeft="5dp"
android:textIsSelectable="true"
android:layout_width="0dp"
android:layout_height="23dp"
android:layout_weight=".40"
android:textSize="15sp" />
</LinearLayout>
我试图与Android搞乱:在该行的XML,但没有结果填充。
我该怎么办? 谢谢。