6

I created many emulators but i did not get 'Done' button on emulator.any ideas to solve this problem? I have attached the screenshot Emulator' Screenshot

4

3 回答 3

20

Just add two lines in xml:

android:imeOptions="actionDone"
android:singleLine="true"

Done

于 2013-01-28T11:31:04.707 回答
4

Try adding android:imeOptions="actionDone" to your EditText.

于 2013-01-20T10:01:51.337 回答
0

android:singleLine="true" has been deprecated. Alternatively you could use this:

android:inputType="text"
android:maxLines="1"
于 2020-05-13T09:23:16.650 回答