Android TableRow中的TextView部分隐藏
我正在尝试在TableLayout中显示一些ImageView和TextView 但是,对于TextView(在第二列中),它是部分隐藏的,不会转到下一行 附加了一个屏幕截图Android TableRow中的TextView部分隐藏,android,textview,tableview,Android,Textview,Tableview,我正在尝试在TableLayout中显示一些ImageView和TextView 但是,对于TextView(在第二列中),它是部分隐藏的,不会转到下一行 附加了一个屏幕截图 TableLayout使其内容溢出。只需添加android:shrinkColumns=“*”或 android:shrinkColumns=“1”添加到TableLayout,它将解决您的问题 <TableLayout android:id="@+id/RestTable" android:layout_wid
TableLayout使其内容溢出。只需添加android:shrinkColumns=“*”或
android:shrinkColumns=“1”添加到TableLayout,它将解决您的问题
<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>