title: Android: displaying long text for TextView
body: <p>I have to display a long text about 250 chars (single line, no new line chars. or breaks). for a TextView of my activity.</p>
  
  <p>I have used textType as textMultiLine for my layout's view and from activity I used view.setText() method by passing the long text.</p>
  
  <p>But the text is displaying out of the visible screen. </p>
  
  <p>How to fix this?</p>
  
  <p>Thanks,
  Nehatha</p>
  
  <p>+++ Edit +++++</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent" android:layout_height="wrap_content"
  android:orientation="vertical" android:background="@drawable/bg" 
  android:gravity="center_horizontal"
  android:id="@+id/rootView"&gt;
  &lt;ScrollView android:id="@+id/ScrollView01"
      android:layout_width="wrap_content" android:layout_height="wrap_content" 
      android:layout_marginLeft="8dp" android:layout_marginRight="8dp"
      android:minWidth="310dp" android:scrollbarStyle="outsideOverlay"
      android:scrollbars="vertical"&gt;
          &lt;LinearLayout android:orientation="vertical"
              android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
              &lt;FrameLayout android:id="@android:id/tabcontent"
                  android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
  
  
                  &lt;LinearLayout android:id="@+id/tabContentPostDetails"
                      android:layout_width="wrap_content" android:orientation="vertical"
                      android:layout_height="fill_parent"&gt;
  
                      &lt;TableLayout android:id="@+id/TableLayout01"
                          android:layout_width="fill_parent" android:layout_height="wrap_content"
                          android:gravity="center"
                          android:background="@drawable/transparent_border_shape"&gt;
                          &lt;TableRow android:layout_marginBottom="5dip"&gt;
                              &lt;LinearLayout android:orientation="horizontal"
                              android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
                                  &lt;TextView android:id="@+id/csPostTitle"
                                      android:padding="3dip" android:textSize="7pt"
                                      android:textColor="@color/Black"  
                                      android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="textMultiLine"/&gt;
                              &lt;/LinearLayout&gt;
                          &lt;/TableRow&gt;
  
                          ....
  </code></pre>