TableRow中的TextView部分隐藏

Ted*_*Ted 4 android textview tableview

我试图在TableLayout中显示一些ImageView和TextView.

但是,对于TextView(在第二列中),它是部分隐藏的,不会转到下一行.

屏幕截图附于此处.

<TableLayout android:id="@+id/RestTable"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content" 
 android:background="#D1D3D4"
 android:layout_marginTop="5dp"
 android:stretchColumns="*"
>
<TableRow android:id="@+id/row1
 android:layout_width="fill_parent"
 android:layout_height="wrap_content" 
 android:layout_marginBottom="0.3dp"
 android:background="#ffffffff"
>
 <ImageView android:id="@+id/tickPic"
  android:layout_marginLeft="13dp"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/tickPic"
  android:scaleType="matrix"
 />
 <TextView 
  android:id="@+id/meal"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:textSize="13sp"
  android:text="Dinner, Lunch, Buffet, Brunch, Hi Tea, Supper/Night Dining"
  android:textColor="#000000"

 />
</TableRow>
Run Code Online (Sandbox Code Playgroud)

TextView是否可以包装内容并将文本移动到下一行而不是部分隐藏?

我尝试使用android:layout_marginRight但没有解决任何问题.

ata*_*ulm 9

TableLayout让它的内容溢出.只需将android:shrinkColumns ="*"或android:shrinkColumns ="1"添加到TableLayout即可解决问题.