Hi,
I am using AcEditText in my Activity. The following code is used to switch OFF the Multiline
If I use the normal EditText then it is working as expected.
Is there anything that I am missing in my code that is causing this behavior ?
My intention is to use ForceDone so that the Keyboard will be hidden after pressing the "Done". After searching the forum, I understood that, for this to work, SingleLine should be set to True. Unfortunately SingleLine mode is not working, hence ForceDone too.
Any sample that has multiple EditText/AcEditText on a single layout, which shows jumping from one edit text box to the next EditText box and some validations too, like we do in Windows Application ?
Regards
Anser
I am using AcEditText in my Activity. The following code is used to switch OFF the Multiline
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private EdtFreightMode As ACEditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("MyLayoutFile")
EdtFreightMode.Initialize("")
EdtFreightMode.InputType = EdtFreightMode.INPUT_TYPE_TEXT
EdtFreightMode.SingleLine = True
EdtFreightMode.Wrap = True
EdtFreightMode.ForceDoneButton = True
End Sub
If I use the normal EditText then it is working as expected.
Is there anything that I am missing in my code that is causing this behavior ?
My intention is to use ForceDone so that the Keyboard will be hidden after pressing the "Done". After searching the forum, I understood that, for this to work, SingleLine should be set to True. Unfortunately SingleLine mode is not working, hence ForceDone too.
Any sample that has multiple EditText/AcEditText on a single layout, which shows jumping from one edit text box to the next EditText box and some validations too, like we do in Windows Application ?
Regards
Anser