You defined the TableLayout with a "fill_parent" height. So it becomes
as tall as the parent LinearLayout and there's no more room for the
button.

On Sun, Mar 15, 2009 at 6:41 AM, Marco <[email protected]> wrote:
>
> Hi ,
>
> I have defined the layout which you can see at the end of this
> message.
> I do not understand, why the button is not displayed. If I move the
> button to the top that the rendering works.
> Any hint?
> Thanks.
>
>
> <?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">
>
>        <TextView android:layout_width="fill_parent"
>                android:layout_height="wrap_content" android:text="@string/
> random_number_text" />
>        <TableLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>                android:layout_width="fill_parent"
> android:layout_height="fill_parent"
>                android:stretchColumns="1">
>                <TableRow>
>                        <TextView android:text="@string/from_text" />
>                        <EditText android:text="@string/default_from_text" />
>                </TableRow>
>                <TableRow>
>                        <TextView android:text="@string/to_text" />
>                        <EditText android:text="@string/default_to_text" />
>                </TableRow>
>        </TableLayout>
>        <Button android:id="@+id/generate_number"
> android:layout_width="fill_parent"
>                android:layout_height="wrap_content" android:text="@string/
> generate_number_text" />
> </LinearLayout>
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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