user1302569
user1302569

Reputation: 7191

EditText and go to next

I have some EditTexts in my application and I am using:android:nextFocusDown="@+id/last_name_edit_text" to go to next editText push "Next" button. I have a problem with last EditText. I want to add when this is last EditText I want to change button next on finish button. How I can do that in xml?

Upvotes: 3

Views: 1006

Answers (4)

Chirag
Chirag

Reputation: 56925

Use android:imeOptions="actionDone" on last edittext

For Next - android:imeOptions="actionNext"

For Done - android:imeOptions="actionDone"

Upvotes: 1

fedepaol
fedepaol

Reputation: 6862

Use imeOptions="actionDone"

Check here and here

Upvotes: 2

Faizan
Faizan

Reputation: 3512

Add this in the last editText

android:imeOptions="actionDone"

Upvotes: 4

Related Questions