Hello.
 
I'm trying to layout a relativeview with a centered textview item on top and
2 centered buttons below.  I thought this xml would work, but it seems to be
ignoring the 
 
android:layout_below=" "

settings because all the items are centered horizontally, but they are
sitting on top of each other at the top of the relativeview.  Am I doing
something wrong?  Thanks for any help.  Full code below:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";

android:layout_width="fill_parent"

android:layout_height="fill_parent"

android:background="@drawable/#0000FF"

android:padding="10px"

android:orientation="vertical" 

>

<TextView android:id="@+id/title" 

android:layout_width="wrap_content" 

android:layout_height="wrap_content" 

android:layout_centerHorizontal="true"

android:text="BirdTracker Main Menu" 

/> 

<Button android:id="@id/guide"

android:layout_width="wrap_content" 

android:layout_height="wrap_content"

android:layout_below="@+id/title"

android:layout_centerHorizontal="true"

android:text="Field Guide " />

<Button android:id="@id/takepic"

android:layout_width="wrap_content" 

android:layout_height="wrap_content"

android:layout_below="@+id/guide"

android:layout_centerHorizontal="true"

android:text="Take Picture" />

</RelativeLayout>

 
-- 
:-) 
P Please don't print this e-mail unless you really need to. 
 <http://www.crossloop.com/Teenah> 

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