Correction.  The following code does allow for multiple lines but does
not word wrap.

On Feb 8, 2:01 pm, creativepragmatic <[email protected]>
wrote:
> Is it possible to have an multiple line EditText within a table?  The
> following code does not work.
>
> <?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="wrap_content"
>                 android:layout_gravity="top"
>                 android:orientation="vertical"
>                 android:stretchColumns="0">
>                 <TableRow
>                         android:layout_width="fill_parent">
>                         <TextView
>                                 android:text="@string/myTableRow"/>
>                 </TableRow>
>                 <TableRow
>                         android:layout_height="wrap_content"
>                         android:layout_width="fill_parent">
>                         <EditText
>                                 android:id="@+id/myEditText"
>                                 
> android:inputType="textMultiLine|textCapSentences"
>                                 android:layout_width="fill_parent"
>                                 android:layout_height="wrap_content"
>                                 android:singleLine="false"/>
>                 </TableRow>
>         </TableLayout>
> </LinearLayout>

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