In Android EditText, how to force writing uppercase?

前端 未结 23 1786
后悔当初
后悔当初 2020-11-27 12:28

In my Android application I have different EditText where the user can enter information. But I need to force user to write in uppercase letters. Do you know a

23条回答
  •  借酒劲吻你
    2020-11-27 12:42

    Set the input type to TYPE_CLASS_TEXT| TYPE_TEXT_FLAG_CAP_CHARACTERS. The keyboard should honor that.

提交回复
热议问题