Note that there are some explanatory texts on larger screens.

plurals
  1. POProper text not getting displayed in dialog if text need to be wrap next line on android >4.0
    text
    copied!<p>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. </p> <p>I have tried layout_weight="1" and also android:ellipsize="none" but nothing is working</p> <pre><code>&lt;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"&gt; &lt;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"&gt; &lt;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" &gt; &lt;/TextView&gt; &lt;/TableRow&gt; &lt;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"&gt; &lt;Button android:layout_height="wrap_content" android:id="@+id/btn_nmp_yes" android:background="@drawable/dialog_ok_button" android:layout_width="wrap_content"&gt; &lt;/Button&gt; &lt;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"&gt; &lt;/TextView&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>Thanks, Manish</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload