Makes sense Andrei. Thanks for the reply.   So I made the change you
suggested and it still has not changed the layout.  Any other suggestions?
Here is my current xml code after these suggested changes:
 
<?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_above="@id/guide"

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>


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Andrei Bucur
Sent: Monday, August 10, 2009 1:33 PM
To: [email protected]
Subject: [android-beginners] Re: RelativeView


I guess that your title has no relative position to anyone so the dependence
tree cannot be parsed. Align the TextView below the parent and see if it
works.


On Mon, Aug 10, 2009 at 9:30 PM, tinyang <[email protected]> wrote:



Thanks for the reply Mark!  I did make the changes you suggested, but it has
not changed the layout.  I also corrected an id line that should have had a
+.  Any other suggestions?


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Monday, August 10, 2009 1:18 PM
To: [email protected]
Subject: [android-beginners] Re: RelativeView


tinyang wrote:
>
> <Button android:id=/"@id/guide"/
>
> android:layout_width=/"wrap_content"/
>
> android:layout_height=/"wrap_content"/
>
> android:layout_below=/"@+id/title"/

Only use the + sign when declaring an ID via android:id. In your
layout_below, remove the + sign.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009
6:10 PM










No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009
6:10 PM



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