这里要用到相对布局,在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>


更多相关文章

  1. Android在程序中动态生成控件,动态布局
  2. Android TextView限定行数最大值,点击按钮显示所有内容
  3. android 相对布局例子代码
  4. Android Studio 添加百分比布局库的依赖报错 第一行代码
  5. 简单布局收缩动画
  6. Android 基础布局控件自定义view使用练习

随机推荐

  1. adb Not running as root. Try "adb root
  2. android 获取手机所有短信内容
  3. android scaleType的属性
  4. android里发送mail的几种方式
  5. Linux 下Android 开发环境搭建
  6. (转载自diycode)2017 Android 面试题分享
  7. Maven开发Android指南 2 配置android-mav
  8. 安装|卸载apk文件在Android仿真器中
  9. android 画虚线、实线,画圆角矩形,一半圆角
  10. Android 侧滑菜单的实现