解决方案:

在我们的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. android handle ui 更新
  2. 短信拦截的解决方案 经典
  3. android 使用vcard示例
  4. android 使用vcard示例
  5. android studio中rendering problems解决方法
  6. Android(安卓)RecyclerView 报错:java.lang.IllegalStateExceptio
  7. Android中Adapter中edittext,checkbox记住状态解决方案(一)
  8. android 6.0权限全面详细分析和解决方案
  9. android音频播放简单示例

随机推荐

  1. android架构之美
  2. 两份安卓学习资料,我建议你看完
  3. 最近,又有人在谈论Android的前景了!深入解
  4. 最近Android挺火啊,都没有什么感想吗
  5. 微软和Wistron再度联手,Android和Chrome O
  6. 华硕 Eee Pad Transformer 3G 版本台湾地
  7. 对Android初学者学习中的几点建议
  8. android车载娱乐系统跟android平板的分析
  9. 深入Android(安卓)【一】 ―― 序及开篇
  10. Android状态栏和虚拟导航栏的适配总结