我在xml中为我的EditText设置了imeoptions="actionDone“,一切在Medion Lifetab或Nexus4上都工作得很好(按下"Enter”键,软键盘就消失了)。
但我需要这个在霍尼韦尔海豚e70上工作。在这个设备上,如果我按下"Enter“,下一个EditText就会获得焦点。我已经尝试将singleline设置为true,但是没有改变行为。
这是我使用的EditText:
<EditText
android:id="@+id/id1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight=".55"
android:imeOptions="actionDone"
android:inputType="textCapSentences"
android:selectAllOnFocus="true"
android:textSize="@dimen/dimen1" />就像我说的,在其他设备上,它可以正常工作..谁有办法解决这个问题,或者我可以从哪里开始处理?我绝对不想为应用程序中的每个该死的EditText都设置一个按键监听器,那就太过分了.
谢谢
发布于 2014-12-12 00:40:00
您可以看到用于隐藏键盘的Close/hide the Android Soft Keyboard和用于捕获圆顶按钮操作的Android Use Done button on Keyboard to click button。
https://stackoverflow.com/questions/27427030
复制相似问题