I have tried to create a mult-iline EditText that allows the capitalization of sentences. Unfortunately it seems that by using the input type method below, it overwrites the multi-line property.
Can anyone point out where Im going wrong or have a work around for it. I have seen applications that have this ability, so I must be missing something.
Thanks!
I am using the reference here
Can anyone point out where Im going wrong or have a work around for it. I have seen applications that have this ability, so I must be missing something.
Thanks!
B4X:
'Activity module
Sub Process_Globals
End Sub
Sub Globals
Dim Button1 As Button
Dim EditText1 As EditText
Dim Label1 As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
EditText1.initialize(EditText1)
EditText1.SingleLine=False
Activity.AddView(EditText1, 1, 1, 200, 100)
Log(EditText1.InputType)
End Sub
Sub Activity_Resume
EditText1.InputType= Bit.Or(EditText1.INPUT_TYPE_TEXT, 16384)
Log(EditText1.InputType)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
Label1.Text = EditText1.Text & CRLF & Label1.text
End Sub
I am using the reference here