If the text is longer than the space allowed by LinearLayout, I want the text to multi line, as shown in the top section of the image below. This is what happens when I run the app on my phone (HTC Desire HD), but when I run it on my tablet (Toshiba Thrive), it gets elipsized, as shown in the bottom section of the image:
I have a ListView that consists of rows. Each row is defined as below:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="4"
android:gravity="center_vertical"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_weight="1"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:textStyle="bold"
android:id="@+id/codeLabel"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/code"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TextView>
</LinearLayout>
<TextView
android:id="@+id/description"
android:layout_weight="3"
android:layout_width="0dip"
android:layout_height="wrap_content"
/>
</LinearLayout>
How do I fix this?