I have a custom dialog in which I displaying some text in the title bar. In android 4.0, it is truncating text. Only ... are appearing in next line. I am inflating following xml to dialog. It is working fine on 3.2.
I have tried layout_weight="1" and also android:ellipsize="none" but nothing is working
<LinearLayout
android:layout_height="fill_parent"
android:weightSum="1"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android1="http://schemas.android.com/apk/res/android"
android:background="@drawable/rounded_textbox_base"
android1:layout_width="fill_parent"
android1:minWidth="500dp">
<TableRow
android:id="@+id/tableRow1"
android1:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/rounded_button"
android1:gravity="center"
android:layout_weight="1">
<TextView
android:id="@+id/tv_nmp_needmore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp"
android1:layout_marginLeft="20dp"
android1:layout_marginRight="20dp"
android:ellipsize="none"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge"
android1:gravity="center"
android1:textColor="@color/white" >
</TextView>
</TableRow>
<LinearLayout
android:id="@+id/linearLayout1"
android:weightSum="1"
android:layout_marginBottom="30dp"
android:layout_marginTop="50dp"
android1:layout_gravity="center"
android1:gravity="center"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content">
<Button
android:layout_height="wrap_content"
android:id="@+id/btn_nmp_yes"
android:background="@drawable/dialog_ok_button"
android:layout_width="wrap_content">
</Button>
<TextView
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/textView1"
android:text="OK"
android:textStyle="bold"
android:layout_marginLeft="20dp"
android1:textColor="#000000">
</TextView>
</LinearLayout>
</LinearLayout>
Thanks, Manish