Dear All
I want my Edit Text automatically capitalize the first letter of the sentence when users make their texting.
I did make a search in the forum but got confused now. I see different INPUT_TYPE but did not get any to work right. Please advise.
Thank you for your advice.
Best
I want my Edit Text automatically capitalize the first letter of the sentence when users make their texting.
I did make a search in the forum but got confused now. I see different INPUT_TYPE but did not get any to work right. Please advise.
B4X:
Sub Edit_Message_TextChanged(Old As String, New As String)
Dim edt As EditText
edt = Sender
If New.EndsWith(". ") OR New.EndsWith("." & Chr(10)) Then
edt.InputType = Bit.OR(131072, 4096) '4096--> All CAPITAL LETTERS
Else
edt.InputType = Bit.OR(edt.INPUT_TYPE_TEXT, 131072) ' 131072 --> Multiline
End If
End Sub
Thank you for your advice.
Best