android - text input type person name isn't working

前端 未结 4 1486
猫巷女王i
猫巷女王i 2021-01-20 15:03

In my android project I want a textfield of type personname where by default caps lock is activated, however, this code isn\'t working.



        
4条回答
  •  走了就别回头了
    2021-01-20 15:52

    If you try to display person name as normal, try this: android:capitalize="words". If you want to all caps you can change words into characters or doing like Mr. LuxuryMode said!

    Edited:

    You should remove android:inputType="textPersonName" field. It will work!

提交回复
热议问题