问题标签 [android-softkeyboard]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 软键盘拦截我的 onClickListener?
在 Android 中,我有以下代码可以在单击时空白一个 EditText 框。这是为了删除框中的所有现有信息并从空白开始。它排序工作。当您第一次单击编辑框时,会出现软键盘,但编辑框中的现有信息仍然存在。如果您在 EditBox 中再次单击,信息就会消失。我怎样才能让它在第一次点击时清除数据?我猜第一次点击被软键盘拦截了。非常感谢您的帮助。
android - 在 MultiLine EditText android中禁用软键盘
我正在尝试将剪贴板内容粘贴到禁用的 EditText 中,没有软键盘弹出窗口,使用以下代码
android EditText 不尊重换行,即不显示多行内容并将其放在单行中。
我想禁止软键盘在多行内容持有者禁用 EditText 中弹出
java - 显示对话框的软键盘
我正在显示一个带有 edittext 视图的对话框。但是,只有当用户在编辑视图内按下时,软键盘才会打开。所以我尝试使用以下代码调用 InputMethodManager。
dialogField 是输入字段。但是,我到底应该在什么时候这样做?我在对话框的 onStart() 方法中尝试过,但没有任何反应。我之前也尝试过为 dialogField 请求焦点,但这没有任何改变。
我也试过这段代码
在两个版本中。但是不想出现软键盘。Main.log 只是一个日志,它告诉我该函数实际上是被调用的。是的,它被称为。
我可以在对话框打开之前获得带有 SHOW_FORCED 标志的键盘。但是它不会在退出时关闭。我只能在显示对话框之前这样做。在任何回调中它也不起作用。
android - 如何在 Android 中捕获“虚拟键盘显示/隐藏”事件?
我想根据是否显示虚拟键盘来更改布局。我搜索了 API 和各种博客,但似乎找不到任何有用的东西。
是否可以?
谢谢!
android - 禁用横向软键盘输入的全屏编辑视图?
在使用软键盘的 Android 设备上,我想防止在横向模式下出现全屏键盘编辑视图(如下所示)(即,我只想看到软键盘本身及其背后的视图)。
我假设这可以使用setExtractViewShown(false)
on 方法来实现InputMethodService
,但是我无法访问 this 的默认实例并且不想实现自定义输入法。
编辑添加:输入的视图不是 a TextView
(它是View
带有自定义InputConnection
实现的),所以android:imeOptions="flagNoExtractUi"
在这里不起作用。
android - Android onKey 不会因为 nexus 上的软键盘而被触发
我正在尝试从软键盘捕获 onKey 事件。但是,只有少数键会触发 onKey 事件(删除、返回等)。不是常规字符。有谁知道为什么?
android - SoftKeyboard hiding EditText
I have a layout that uses an EditText to let users search a database and populate a ListView. The EditText is about 2/3 of the way from the top of the screen (positioned over an ImageView, and followed by some intro text.)
The problem is that the soft keyboard hides the EditText, so the user can't see what he's typing. (I disabled the auto-suggest.)
I've tried LinearLayout, RelativeLayout, paddings, and different alignments/centerings, but I still can't get it to work right. The EditText is either hidden, gets pushed off the top of the screen, or get "squished" and distorted.
Suggestions???
One possible workaround is to move the EditText to the top of the screen. However, this deviates from the graphic design that I was given.
Another possible workaround is for me to make the soft keyboard open in full screen (not sure how, though). This will still hide the EditText, but then I can re-enable the auto-suggestion so the user can see what he's typing... sort of... because he can only see the suggestions for what he's typing.
Here's my latest attempt. See "introFrame".
android-layout - Android - webview 中 TextField 的软键盘
通常在横向模式下,EditText 将以全屏模式打开 IME,但对于 web 视图内的文本字段(作为 HTML 内容加载)它不会,它会将现有视图向上推。尝试使用“调整盘”选项,但无济于事。在这种情况下是否可以更改 IME?提前致谢...
android - 使用软键盘上的“ENTER”键而不是单击按钮
你好我有一个搜索EditText
和搜索Button
。当我键入搜索的文本时,我想使用软键盘上的ENTER键而不是搜索Button
来激活搜索功能。
提前感谢您的帮助。
android - 当我调用 ssoftkeyboard 时调整我的 Android 应用程序的大小
我的应用程序中的软键盘有问题。当我按下编辑文本时,软键盘会出现在编辑文本上方。我从 Android 阅读了文档并输入了 AndroidManifest.xml android:windowSoftInputMode="adjustResize">
,但它不起作用。