title: Wrap Text - Android TextView
body: <p>Before someone says that I should google this, I want to point out that I did and then i tried all the different methods to see what would work and nothing did for me. So, now that ugly business is out of the way on with my questions.... :)</p>
  
  <p>I cannot seem to get a text view to wrap for me. Dont know why. Here is my XML code for the layout. It is a table layout that will be used for a listview in another xml layout.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;TableRow
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
          &lt;TextView
              android:id="@+id/ot_color_priority"
              android:layout_height="fill_parent"
              android:layout_width="20dp"
              android:gravity="center_vertical"/&gt;
          &lt;RelativeLayout&gt;
              &lt;TextView
                  android:id="@+id/ot_ticket_number"
                  android:layout_height="wrap_content"
                  android:layout_width="match_parent"
                  android:gravity="center"
                  android:textStyle="bold"/&gt;
                  &lt;TextView
                      android:id="@+id/ot_ticket_details"
                      android:layout_alignParentBottom="@id/ot_ticket_number"
                      android:layout_height="wrap_content"
                      android:layout_width="300dp"
                      android:layout_marginTop="15dp"
                      android:scrollHorizontally="false"
                      android:ellipsize="none"
                      android:maxLines="10"
                      android:text="This is a long dang string that never wants to freaking wrap worth a crap!"/&gt;
          &lt;/RelativeLayout&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>The data that is in the textview just continues to write off the screen to the right. I cannot get it to wrap. The only way I can seem to get it to work is if I set a DP value to the layout_width. I dont want to do that because it will be used on different devices screen resolutions and I am afraid that may cause some problems later on.</p>
  
  <p>So please someone help me :(</p>