wrap around with textview in a tablelayout broken

by Fabian Sturm » Tue, 22 Sep 2009 04:21:03 GMT


Sponsored Links
 Hi!

I have a very simple layout, a table with a single row containing two
textviews. The first textview has a short text and the second a long
text which needs to be wrapped around.

Unfortunately the wrap around does not work. In the first line of the
wrapped text the last word is missing a letter and in the second line
another letter is missing and even the word "3" is missing. 
So I get the text:

"Ein ganz langer Text der umgebrochen werde
 muss, der so lange ist, dass er auf mindesten
 zeilen verteilt werden muss"

instead of this text:

"Ein ganz langer Text der umgebrochen 
 werden muss, der so lange ist, dass 
 er auf mindestens 3 zeilen verteilt 
 werden muss"

Any ideas what I need to activate for the correct wrap around?
I tried many layout parameters but none helped.

I know I could get the same layout easier, but this is just a broken
down example. I want to use a table with maybe 5 rows and 2 columns
later on.

Thanks a lot, Fabian


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android=" http://schemas.android.com/apk/res/android" ;
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TableLayout
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent"    
    >
        <TableRow>
            <TextView  
                android:text="Title:"
            />
            <TextView  
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content"
                android:text="Ein ganz langer Text der umgebrochen
werden muss, der so lange ist, dass er auf mindestens 3 zeilen verteilt
werden muss"
           />
        </TableRow>
    </TableLayout>
</LinearLayout>




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Find out how you can change your love life with our wonder pills..

You got the wrong group dude.
Down here at the android developer group we are all
computer geeks -
and geeks do not have a love life..

-- 

2. "android:windowTitleStyle" doesn't works for android:gravity = center

Theres an issue regarding this:
http://code.google.com/p/android/issues/detail?id=4395
Star it!

2009/12/7 justinh <henderson.jus...@gmail.com>



> 

3. "android:windowTitleStyle" doesn't works for android:gravity = center

4. Rotate GalleryView Vertically

5. JSONObject text must begin with '{' at character 1

6. Motorola Droid -- Poor accelerometer performance

7. Video and Audio Stream