Depending on what you want to do, with the space in the middle, you could
create a view that acts as an empty space holder and set its layout_height
attribute to fill_parent.

One simple way of doing this would be to use  a TextView that only displays
an empty string....

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Sun, Oct 25, 2009 at 7:59 PM, tatman <[email protected]> wrote:

>
> I have two elements:  I want the text at the top of the screen and the
> button at the bottom with space between the two controls.    How can I
> get the button to appear at the bottom of the screen?
>
> <?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:background="@drawable/blankscreen"
>    >
> <TextView
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:text="@string/hello"
>    />
>
> <Button
>    android:layout_width="fill_parent"
>    android:layout_height="wrap_content"
>    android:gravity="bottom"
>    android:text="@string/btn_start_game"
> />
>
> </LinearLayout>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to