0

I have five edittext in my layout. by default when i click on any of the edittext the virtual keyboard shows like following

enter image description here

Is it possible to modify the behavior of enter key ? I want when the key pressed the focus should be transferred to next edit text. Keyboard should look like

notice the change in enter key and also suggestions are disabled

notice the change in enter key and also suggestions are disabled. Is there any way to achieve it ?

4

1 回答 1

2

要禁用文本建议,请将以下参数添加到您的EditText:

<EditText
    android:inputType="textNoSuggestions"
    (…)
/>

并在按下“输入”键后转到下一个字段,在以下参数上添加下一个字段的 ID:

<EditText
    android:nextFocusForward="@+id/nextEditTextId"
    (…)
/>

详细信息可以在这里找到。

希望能帮助到你!

于 2015-08-18T18:36:22.143 回答