android 输入法弹出 标题栏不被顶出去
16lz
2021-01-23
方案一:使用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);
更多相关文章
- android Sqlite多线程访问异常解决方案
- Android 对话框【Dialog】去除白色边框代码
- Android 完美扩大ImageView的点击范围方案
- 介绍一下android的各种权限。 代码如下: Html代码 <manifestxmlns
- android aosp 下载源代码
- 《android开发应用实战详解》光盘源代码