Hiren Patel
Hiren Patel

Reputation: 52800

how to get "Done" button in android keyboard?

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

Upvotes: 6

Views: 7983

Answers (3)

Fred
Fred

Reputation: 352

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

android:inputType="text"
android:maxLines="1"

Upvotes: 0

Hiren Patel
Hiren Patel

Reputation: 52800

Just add two lines in xml:

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

Done

Upvotes: 20

Raghav Sood
Raghav Sood

Reputation: 82553

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

Upvotes: 4

Related Questions