I got problem with Custom Input Dialog, see this post
https://b4x.com/android/forum/threads/b4x-input-dialogs-with-xui-views.101197/#post-638981
Suggestion from Erel's code, has a slight error, have to change the code to this
That codes, kind of solved the problem, but another problem exist.
When Dialog showed, cursor in first field, virtual keyboard showed, but the ENTER button on virtual keyboard show DONE instead of NEXT.
https://b4x.com/android/forum/threads/b4x-input-dialogs-with-xui-views.101197/#post-638981
Suggestion from Erel's code, has a slight error, have to change the code to this
B4X:
Sub btnCustom_Click
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 300dip, 150dip)
p.LoadLayout("CustomDialog")
dialog.PutAtTop = True 'put the dialog at the top of the screen
Dim rs As ResumableSub = dialog.ShowCustom(p, "OK", "", "CANCEL")
fieldFirstName.TextField.RequestFocus 'add TextField
IME.ShowKeyboard(fieldFirstName.TextField) 'add TextField
Wait For (rs) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
dialog.Show(fieldFirstName.Text & " " & fieldLastName.Text, "OK", "", "")
End If
End Sub
That codes, kind of solved the problem, but another problem exist.
When Dialog showed, cursor in first field, virtual keyboard showed, but the ENTER button on virtual keyboard show DONE instead of NEXT.