TextView in TableLayout no line break?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

TextView in TableLayout no line break?

Postby georgij » Wed Jan 14, 2009 12:39 am

Hello,

may be someone knows this problem (or why it became one). I have a table of two columns like

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <TableLayout>
  3.  
  4.   <TableRow>
  5.  
  6.      <TextView></TextView>
  7.  
  8.      <TextView></TextView>
  9.  
  10.   </TableRow>
  11.  
  12. </TableLayout>
  13.  
  14.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


If I have long Strings set in the TextView (I use usually the second one) only as much of the String is shown as a single line can show. There is no auto line break to show the whole String as it does in something like

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <LinearLayout>
  3.  
  4.  <TextView></TextView>
  5.  
  6. </LinearLayout>
  7.  
  8.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


Is there a way to let the TextView auto line break the text? I'm not keen to subclass TextView and measure text especially since I have seen it can handle it alone.
georgij
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Jan 14, 2009 12:22 am
Location: Germany

Top

Postby georgij » Wed Jan 14, 2009 9:26 pm

Ok, I found the reason/solution, its simply the android:shrinkColumns attribute. The size was causing the effect of seemingly no line break.
georgij
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Jan 14, 2009 12:22 am
Location: Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests