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. launcher bisa karakter mandarin

apakah ada launcher semacam launcher pro tapi bisa bikin menu jadi mandarin?

thanks all

syd
ptk

-- 
===============

2. Wifi-interfacing

Hello all,

I am working on android interfacing , i have implemented rfkill driver
for wifi & trying to implement interfacing in wifi.c. I am able to set
& reset the sate of rfkill(of wifi) from command prompt,but it not
turning on my wifi but giving "Failed to start supplicant daemon"
error.If anyone is having some ideas to resolve this issue please
reply.

With Regards,
Maya

-- 

3. Debug application running on emulator on another computer in LAN

4. HTML Viewer

5. showDialog(int id) vs dialog.show()

6. Button click Navigation not working ( application gets crashes)

7. Android 2.3.3 NFC capabilities concerns