I’d like to submit a method when the user hits the ENTER key inside a editText field.
<EditText android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:imeOptions="actionDone"
android:singleLine="true"
/>
Atm this results in going to the next UI element on screen if the user hits done.
But i’d like to fake-submit a button?
You need to set an
OnEditorActionListeneron yourEditText. Here’s an example: