Hi folks,

I've spent quite some time on this and I can't wrap my fingers around it.
Whatever I try, the EditText view in the TableRow is either clipped
(attached screenshot), or, if I set shrinkColumns to either 0 or 1, the
label text disappears (and the EditText view takes up the whole width). My
layout is as follows:

<?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"
> android:padding="10dip">
> <TableLayout
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:orientation="vertical">
> <TableRow
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:orientation="horizontal">
> <TextView
> android:paddingRight="10dip"
> android:layout_column="1"
> android:text="Label Text" />
> <EditText
> android:text="Very long text that makes the text view go on clipping
> frenzy"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content" />
> </TableRow>
> </TableLayout>
> </LinearLayout>


I've tried it on a 2.2 emulator running at QVGA and HVGA, a HTC Hero on 2.1
and the Wildfire on 2.1 as well. I've also played around with the
clipToPadding attribute which doesn't seem to help in my case.

The same issue appears if I set the hint attribute with a long text and
leave the text value empty.

As I am doing nothing particularly complex, I suspect a simple error on my
side. Any ideas, hints or suggestions are highly appreciated.

Cheers!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<<attachment: clipping1.png>>

Reply via email to