Next in keyboard, and multiple items selection

I have 2 problems,

First I have a login scene, where users have to enter all their info through text fields

in alot of apps there is always a next button in the keyboard that focuses on the next text field, how to implement that?

also when the keyboard shows I can’t see the text fields in its background how to fix that too ?

IQuqOnr.png

iEG6OeE.png

Second, you know that multiple contacts selection in android ? I want to create a multiple selection widget too, what is the way to do it ?

These are questions that are going to take a long verbose answer to describe a simple problem.

First, you can easily change the “Done” button on the keyboard to “Next”. See:  https://docs.coronalabs.com/api/type/TextField/setReturnKey.html

Pay attention to the Gotcha’s. On iOS, setting to “Next” will make it do what you want. On Android you have to manage the focus yourself using native.setKeyboardFocus() https://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Now if you want a row of buttons just above the keyboard, you would need to create that yourself using various display.* objects. There is no way to get the keyboard height but on iOS the hight of the keyboard is known values on various devices.

Now as far as showing the fields that get hidden by the keyboard, the best thing to do is to put all the fields into a display.newGroup() and if one of the fields that’s in the bottom half of the screen becomes active, in the event handler, move the group so that the next field shows.

Rob

Thanks for the explanation
what about the second question ?

Second, you know that multiple contacts selection in android ? I want to create a multiple selection widget too, what is the way to do it ?

Sorry. I don’t have a frame of reference for that. Perhaps a screen shot would be helpful. But the selection widget we have is a widget.newPickerWheel, but it only allows a single selection. You might have to create that yourself.

Rob

neverming it looks like I have to create it myself, I guess it’s easy though…

Thanks for your help…

These are questions that are going to take a long verbose answer to describe a simple problem.

First, you can easily change the “Done” button on the keyboard to “Next”. See:  https://docs.coronalabs.com/api/type/TextField/setReturnKey.html

Pay attention to the Gotcha’s. On iOS, setting to “Next” will make it do what you want. On Android you have to manage the focus yourself using native.setKeyboardFocus() https://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Now if you want a row of buttons just above the keyboard, you would need to create that yourself using various display.* objects. There is no way to get the keyboard height but on iOS the hight of the keyboard is known values on various devices.

Now as far as showing the fields that get hidden by the keyboard, the best thing to do is to put all the fields into a display.newGroup() and if one of the fields that’s in the bottom half of the screen becomes active, in the event handler, move the group so that the next field shows.

Rob

Thanks for the explanation
what about the second question ?

Second, you know that multiple contacts selection in android ? I want to create a multiple selection widget too, what is the way to do it ?

Sorry. I don’t have a frame of reference for that. Perhaps a screen shot would be helpful. But the selection widget we have is a widget.newPickerWheel, but it only allows a single selection. You might have to create that yourself.

Rob

neverming it looks like I have to create it myself, I guess it’s easy though…

Thanks for your help…