In Android EditText, how to force writing uppercase?

前端 未结 23 1772
后悔当初
后悔当初 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:35

    For me it worked by adding android:textAllCaps="true" and android:inputType="textCapCharacters"

    
    

提交回复
热议问题