Turn on/off caps lock and shift key programatically on android

后端 未结 1 1346
暖寄归人
暖寄归人 2021-01-26 09:56

I am developing an android application (keyboard driver) in which first I am connecting Bluetooth keyboard with android device , after successful connection in my Inputmethod s

相关标签:
1条回答
  • 2021-01-26 10:17

    In your EditText (or wherever appropriate) use the attribute:

    android:inputType="textCapCharacters"
    

    to capitalize all letters by default. Read inputType for its other features.

    0 讨论(0)
提交回复
热议问题