- <?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">
- <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>
Android - 保持在底部的按钮栏,上面是滚动的ScrollView
最新推荐文章于 2022-03-25 15:46:20 发布