Your layout file seems to work fine. I do see 4 EditText fields in the
second row.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Jul 25, 6:46 pm, "Alex A." <ogaku...@gmail.com> wrote:
> Hi all,
>
> I started Android development this morning, and that's pretty much
> what I was doing all day :)
> It's very exciting and Eclipse plug in is so easy to use!!! Here's a
> little problem that I ran into with XML.
>
> Trying to put 4 EditText fields in one row of a TableLayout as
> follows:
>
> -----------------------------------------
> <TableLayout
>                 android:layout_height="fill_parent"
>                 android:layout_width="fill_parent"
>                 android:id="@+id/MainTable"
>                 xmlns:android="http://schemas.android.com/apk/res/android";>
>
> <TableRow
>                 android:id="@+id/Row1"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content">
>
>     <TextView
>         android:id="@+id/label1"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:text="@string/first"/>
> </TableRow>
>
> <TableRow
>                 android:id="@+id/Row2"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content">
>
>     <EditText
>         android:id="@+id/inputField1"
>         android:layout_column="0"
>         android:layout_width="30dip"
>         android:layout_height="wrap_content"
>         android:padding="3dip"/>
>
>     <EditText
>         android:id="@+id/inputField2"
>         android:layout_column="1"
>         android:layout_width="30dip"
>         android:layout_height="wrap_content"
>         android:padding="3dip"/>
>
>     <EditText
>         android:id="@+id/inputField3"
>         android:layout_column="2"
>         android:layout_width="30dip"
>         android:layout_height="wrap_content"
>         android:padding="3dip"/>
>
>     <EditText
>         android:id="@+id/inputField4"
>         android:layout_column="3"
>         android:layout_width="30dip"
>         android:layout_height="wrap_content"
>         android:padding="3dip"/>
> </TableRow>
>
> </TableLayout>
>
> -----------------------------------------
>
> But what this results in is just one EditText field (the first one)
> taking up the whole second row.
> What I need is all 4 entry fields in one row.
> What is the problem here?
> Any help is appreciated.
>
> Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to