方案一:使用scrollview包裹并设置属性
    android:fadeScrollbars="true"
        android:fillViewport="true"
    不要使用android:scrollbars="none"
    如果不需要显示滚动条,在代码里面设置
    ScrollView sc = (ScrollView) view.findViewById(R.id.sc);
        sc.setVerticalScrollBarEnabled(false);
        sc.setHorizontalScrollBarEnabled(false);

方案二:不要在 AndroidManifest中设置activity的theme的style为notitle
    直接在onCreate方法中设置requestWindowFeature(Window.FEATURE_NO_TITLE);
    不要使用android:scrollbars="none"
    如果不需要显示滚动条,在代码里面设置
    ScrollView sc = (ScrollView) view.findViewById(R.id.sc);
        sc.setVerticalScrollBarEnabled(false);
        sc.setHorizontalScrollBarEnabled(false);
 

更多相关文章

  1. android Sqlite多线程访问异常解决方案
  2. Android 对话框【Dialog】去除白色边框代码
  3. Android 完美扩大ImageView的点击范围方案
  4. 介绍一下android的各种权限。 代码如下: Html代码 <manifestxmlns
  5. android aosp 下载源代码
  6. 《android开发应用实战详解》光盘源代码

随机推荐

  1. DDNS 的工作原理及其在 Linux 上的实现--
  2. Linux:/etc/hosts中的127.0.0.1作用
  3. 双机高可用、负载均衡、MySQL(读写分离、
  4. 我想开始学习Linux网络编程和android开发
  5. 《鸟哥的Linux私房菜》读书笔记6——其它
  6. Linux 下nice 函数用法提高一个进程的友
  7. Ubuntu系统环境变量详解
  8. Linux下安装和使用杀毒软件AntiVir
  9. Linux-C语言函数手册
  10. Linux的那些事儿(10)----grep命令以及正则