Android Question EditText and UpperCase

Dey

Active Member
Licensed User
Longtime User
Hi everyone
let's see if I can explain what I need to do

I have EditText to compile
the system uses an external keyboard, I do not know how to make the digitization last, I would like the characters in CAPS
if I use IME I have no problems
is it possible to intercept the character to capitalize it before the event edittext_TextChanged?
Thanks to those who give me a thing
 

Geezer

Active Member
Licensed User
Longtime User
You could limit the allowed characters to capitals.

Something similar to

B4X:
IME.SetCustomFilter( EditText1, EditText1.INPUT_TYPE_TEXT + 4096, "ABCDEFGHIJKLMNOPQRSTUVWXYZ 123456789.")
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
B4X:
InpTyp.Initialize
InpTyp.SetInputType(EditText1, Array As Int(InpTyp.TYPE_CLASS_TEXT, InpTyp.TYPE_TEXT_FLAG_CAP_CHARACTERS))  'uppercase letters
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
B4X:
InpTyp.Initialize
InpTyp.SetInputType(EditText1, Array As Int(InpTyp.TYPE_CLASS_TEXT, InpTyp.TYPE_TEXT_FLAG_CAP_CHARACTERS))  'uppercase letters


Thank you all for the answers
Is InpTyp a library?
with the soft keyboard IME I have no problems with capital letters
I can not get uppercase letters with an external USB keyboard
I can convert after _FocusChanged event
 
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Upvote 0
Top