展会信息港展会大全

Android - 保持在底部的按钮栏,上面是滚动的ScrollView
来源:互联网   发布日期:2015-10-03 10:54:17   浏览:1449次  

导读:这里要用到相对布局,在ScrollView里放置自己的内容views<?xml version="1.0" encoding="utf-8"?><RelativeLayou...

这里要用到相对布局,在ScrollView里放置自己的内容views

<?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开发 教程

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港