Suggestions on implementing a next/prev/done navigation for TextField Keyboard

Hey Corona devs.

I’m looking to recreate something like this:

screen-shot-2012-07-23-at-11-43-11-pm.pn

Specifically the prev, next and done buttons on a navigation bar that sits above the keyboard.

I know how to make the navigation bar and buttons, I am just curious if anyone has a good solution to placing the navigation bar on top of the keyboard, since there is no way to get the keyboard hight or position (right?).

If this isn’t possible, I would love to hear of how people have implemented such a feature in their apps. The main problem is that the number fields do not have a done button, so this makes it challenging.

Any advice or recommendations would be greatly appreciated.

Thanks!

Just an idea… how about putting them at the top of screen? Using something like Rob’s NavBar tutorial : 

https://coronalabs.com/blog/2013/12/31/tutorial-extending-widgets-with-a-navigation-bar/

Hi,

You can get the keyboard height for iOS only. However you can place your toolbar at the top of the screen, which seems Apple’s preferred way if you look at the contacts app

Atanas

If you’re only doing iOS, you can predict where the keyboard will be when it’s exposed and draw your own nav bar there.  For Android, the keyboard height varies too much and there is no way to get the height, so putting it at the top makes the most sense.

Rob

Thanks for all the suggestions.

The top it is then I guess!

Just an idea… how about putting them at the top of screen? Using something like Rob’s NavBar tutorial : 

https://coronalabs.com/blog/2013/12/31/tutorial-extending-widgets-with-a-navigation-bar/

Hi,

You can get the keyboard height for iOS only. However you can place your toolbar at the top of the screen, which seems Apple’s preferred way if you look at the contacts app

Atanas

If you’re only doing iOS, you can predict where the keyboard will be when it’s exposed and draw your own nav bar there.  For Android, the keyboard height varies too much and there is no way to get the height, so putting it at the top makes the most sense.

Rob

Thanks for all the suggestions.

The top it is then I guess!