Question

I like to design a form with both Go and Next buttons in keypad. I think we can have any one button (either 'go' or 'next' button) at a time in android keypad (please correct me if I am wrong). Is there any option to have both these buttons displayed to user.

Consider that I have a form with two EditTexts. The first EditText is mandatory and the second EditText is optional. Hence, once user completes their first EditText value, they can either

  • click Next button - to point second EditText (or)
  • click Go button - to directly submit the form values.

Please suggest me some sample codes if possible.

Thanks in advance.

Was it helpful?

Solution

This is not possible with the standard keyboard. The "Go" and "Next" buttons are "contextual" - they are supposed to represent actions depending on the current state.

If there are more text boxes to fill, the "Next" should be displayed, if not, then "Go" should move the user to the next screen or action.

You can make your own custom keyboard that overrides this behavior but I would advise against it as it would end up confusing the users since they are already used to this behavior. This falls under the design principle: If it looks the same, it should act the same (Under the Simplify My Life section)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top