解决方案:

在我们的LinearLayout布局外添加ScrollView

示例:

由原来的:

view plain print ?
  1. <?xmlversion="1.0"encoding="utf-8"?>
  2. <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent">
  5. ......
  6. </LinearLayout>

改为:

view plain print ?
  1. <?xmlversion="1.0"encoding="utf-8"?>
  2. <ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent">
  6. <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
  7. android:layout_width="fill_parent"
  8. android:layout_height="fill_parent">
  9. ......
  10. </LinearLayout>
  11. </ScrollView>



更多相关文章

  1. 为TabLayout设置自定义布局
  2. android动态布局方法总结
  3. Android——布局的一些动态设置
  4. Android动态添加布局
  5. 解决Android Studio XML布局格式化无法换行的问题
  6. Android ApiDemos示例解析(94):Text->Marquee

随机推荐

  1. Android系统调用
  2. 在Android中使用ViewPager实现左右滑动页
  3. 安卓布局属性代码中文注解
  4. qt for Android(安卓)环境搭建 win10
  5. android sdk 国内镜像地址
  6. (转)Android(安卓)知识梳理
  7. Android时间(TimePicker)日期(DatePicker
  8. [Android] TroubleShooting: Android req
  9. 重写EditText回车键跳到下一个EditText
  10. Android开发札记初级(三)探索Android(安卓)