Android RelativeLayout issue -


i've got relativelayout 2 nested relativelayouts. want first rl stay on top , second scrollable, not work.

<relativelayout   xmlns:android="http://schemas.android.com/apk/res/android"   android:layout_width="fill_parent"   android:layout_height="fill_parent">   <relativelayout     android:id="@+id/relativetop"     android:layout_width="fill_parent"     android:layout_height="wrap_content">     <!--buttons-->   </relativelayout>   <scrollview     android:layout_width="fill_parent"     android:layout_height="wrap_content">     <relativelayout       android:layout_width="fill_parent"       android:layout_height="wrap_content">       <!--lots of nested relatilayouts views-->     </relativelayout>    </scrollview> </relativelayout> 

there xml attribute need know android:layout_below

<relativelayout   xmlns:android="http://schemas.android.com/apk/res/android"   android:layout_width="fill_parent"   android:layout_height="fill_parent">   <relativelayout     android:id="@+id/relativetop"     android:layout_width="fill_parent"     android:layout_height="wrap_content">     <!--buttons-->   </relativelayout>   <scrollview     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:layout_below="@id/relativetop"> <!-- here goes! -->     <relativelayout       android:layout_width="fill_parent"       android:layout_height="wrap_content">       <!--lots of nested relatilayouts views-->     </relativelayout>    </scrollview> </relativelayout> 

an alternative linearlayout works great there layouts can "divide" layout 2 parts...


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -