Nested RelativeLayout

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Nested RelativeLayout

Postby mangaluve » Wed Apr 22, 2009 10:30 am

Are there any limitations on nested RelativeLayouts? Suppose I have a RelativeLayout. Inside of that I have another RelativeLayout.. it works fine, but when I have some other view (outside of the inner RelativeLayout), refering to the inner RelativeLayout, the positioning is wrong. I mean something like

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <RelativeLayout>
  2.  
  3.   // Some stuff
  4.  
  5.   <RelativeLayout android:id="@+id/inner">
  6.  
  7.     // Some stuff
  8.  
  9.   </RelativeLayout>  
  10.  
  11.   <Button ... android:layout_below="@id/inner".../>
  12.  
  13. </RelativeLayout>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


That is, I want my Button to be placed below my inner RelativeLayout. Instead it's positioned at the top of the activity. Why is that?
mangaluve
Experienced Developer
Experienced Developer
 
Posts: 82
Joined: Mon Mar 23, 2009 8:59 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests