I have a table which is 2x2.  in the left column is some text fields,
and the right column has edit boxes.  when I have a long text string
in the edit boxes it seems like it truncates the edit box on the right
hand side (so instead of rounded corners on the right, it cuts off
hard).

If I set the <EditText> element layout_width to 0px (or 100px), it
works fine.  in other words, the text scrolls over and is right
adjusted.

Any ideas?

tia.

<TableLayout android:id="@+id/MyTable"
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:stretchColumns="1"
             android:paddingLeft="20px">

    <TableRow>
        <TextView android:text="@string/MyText1"
                  android:textStyle="bold"
                  android:gravity="right"/>
        <EditText android:id="@+id/MyEdit1"
                  android:layout_width="fill_parent"
                  android:gravity="left"
                  android:singleLine="true"/>
    </TableRow>

    <TableRow>
        <TextView android:text="@string/MyText2"
                  android:textStyle="bold"
                  android:gravity="right"/>
        <EditText android:id="@+id/MyEdit2"
                  android:layout_width="fill_parent"
                  android:password="true"
                  android:gravity="left"
                  android:singleLine="true"/>
    </TableRow>

</TableLayout>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to