Showing posts with label android:nextFocusDown. Show all posts
Showing posts with label android:nextFocusDown. Show all posts

Tuesday, October 26, 2010

Soft keyboard next button not working?

I recently ran across a problem with the soft keyboard's next button not advancing focus to the next EditText. In my case I implemented a RelativeLayout in which the EditText boxes were side-by-side, instead of the usual stacked approach. It seems the Next button always tries to focus the next line, not taking into account additional objects on the same line (at least in my particular layout). Luckily, Android provides a method for overriding this behavior with custom instructions.
android:nextFocusDown