Android Question [Solved] Is it possible to configure the keyboard to start in Uppercase and then continue in Lowercase?

Sergio Castellari

Active Member
Licensed User
Situation:
1) In an EDITEXT, you would need the keyboard to start the first letter in uppercase and then in lowercase. It can? What?
Looking at examples and references I observe that everything can be capitalized with this code:
B4X:
    edtDetalle.InputType = Bit.Or(edtDetalle.InputType, 4096)  'Activa Teclado en MAYUSCULAS
 

Mahares

Expert
Licensed User
Longtime User
start the first letter in uppercase and then in lowercase.
See this class by @stevel05 . It will do just what you need. It starts upper then lower after the first letter. I have successfully used it. Maybe there are others.
B4X:
Private InpTyp As SLInpTypeConst
InpTyp.Initialize
InpTyp.SetInputType(EditText1,Array As Int(InpTyp.TYPE_CLASS_TEXT,InpTyp.TYPE_TEXT_FLAG_CAP_SENTENCES))
 
Upvote 0

Jeffrey Cameron

Well-Known Member
Licensed User
Longtime User
Upvote 0

Sergio Castellari

Active Member
Licensed User
Thank you, with your suggestions and search, achieve the objective in this way:
B4X:
    edtDetalle.InputType = Bit.Or(edtDetalle.InputType, 16384)  'Activa Teclado en MAYUCULA solo primera letra
Hugs!
 
Upvote 0
Top