android 输入法不全屏
来源:互联网 发布:linux退出不保存 编辑:程序博客网 时间:2024/04/27 21:14
在小分辨率时, 弹出输入法会显示全屏,
要使输入法不全屏, 要么给EditText添加一属性:
如:
packages/apps/Browser/res/layout/title_bar_nav.xml<com.android.browser.UrlInputView android:id="@+id/url" android:focusable="true" android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="match_parent" android:fadingEdge="horizontal" android:fadingEdgeLength="24dip" android:textAppearance="?android:attr/textAppearanceMedium" android:hint="@string/search_hint" android:singleLine="true" android:ellipsize="end" android:lines="1" android:scrollHorizontally="true" android:inputType="textUri" android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen" style="@style/Suggestions" android:background="@null" />
android:imeOptions中的值起了关键作用,
flagNoExtractUi
第二种做法比较暴力, 不建议.
make not show extractUI when show inputmethod:--- a/frameworks/base/core/java/android/inputmethodservice/InputMethodService.java+++ b/frameworks/base/core/java/android/inputmethodservice/InputMethodService.java@@ -2182,7 +2182,7 @@ public class InputMethodService extends AbstractInputMethodService { return; } - setExtractViewShown(true);+ setExtractViewShown(false && true);//AnsonCode 2013.12.11 } /**CODE: public void onUpdateExtractingVisibility(EditorInfo ei) { if (ei.inputType == InputType.TYPE_NULL || (ei.imeOptions&EditorInfo.IME_FLAG_NO_EXTRACT_UI) != 0) { // No reason to show extract UI! setExtractViewShown(false); return; } setExtractViewShown(false && true);//AnsonCode 2013.12.11 }
0 0
- android 输入法不全屏
- Android 横屏时禁止输入法全屏
- Android 横屏时禁止输入法全屏
- android 禁止横屏时输入法全屏
- Android 横屏时禁止输入法全屏
- android 横屏屏蔽输入法全屏
- android 设置activity不全屏
- Android默认不弹出输入法
- Android全屏下输入法软键盘遇到的问题
- android 全屏且不失去主题
- android spinner设置不全屏显示
- 全屏下使用输入法
- Android EditText 不弹出输入法总结
- Android EditText 不弹出输入法总结
- android 点击EditTextView不弹出输入法
- android 点击EditTextView不弹出输入法
- Android之-EditText不弹出输入法设置
- Android AlertDialog setContentView输入法不显示
- SpringMVC国际化简单配置使用
- [转] 播放assets文件里视频文件的问题
- 4.2 锁屏小部件亮屏时不显示边框
- [Gradle中文教程系列]-跟我学Gradle-5.6:依赖-依赖报告和冲突的解决
- android 数据库
- android 输入法不全屏
- linux学习笔记--edquota命令
- Tomcat 配置 UTF-8 编码
- python2.7简明之杨辉三角
- android 修改UI默认屏幕方向
- myeclipse配置高版本的tomcat
- Android 使用 EditText 出现莫名其妙的错误
- PlayMaker插件的使用
- [转]Android应用崩溃后异常捕获并重启