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
Post a Comment