保持在底部的按钮栏,上面是滚动的ScrollView---转

blueskyhk 2012-04-17

<?xmlversion="1.0"encoding="utf-8"?>

<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

<LinearLayout

android:id="@+id/buttonLayout"

android:layout_alignParentBottom="true"

android:layout_height="wrap_content"

android:layout_width="fill_parent"

android:orientation="horizontal">

<Button

android:text="AAAA"

android:layout_height="wrap_content"

android:layout_width="fill_parent"

android:layout_weight="1"/>

<Button

android:text="BBBB"

android:layout_height="wrap_content"

android:layout_width="fill_parent"

android:layout_weight="1"/>

</LinearLayout>

<ScrollView

android:layout_above="@id/buttonLayout"

android:layout_width="fill_parent"

android:layout_height="fill_parent">

</ScrollView>

</RelativeLayout>

相关推荐