首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >android:capitalize不是大写土耳其字符。

android:capitalize不是大写土耳其字符。
EN

Stack Overflow用户
提问于 2015-01-05 16:58:07
回答 1查看 85关注 0票数 0

我有一个edittext,我需要将我输入到edittext的所有字符大写,但它不会将土耳其字符更改为大写。不起作用的字符是I-->İş-->Şğ-->Ğü-->äö-->?

代码语言:javascript
复制
<EditText
android:id="@+id/etUserName"
android:layout_width="300dp"
android:layout_height="50dp"
android:background="@drawable/button_default_bg"
android:padding="10dp"
android:layout_margin="5dp"
android:hint="@string/entrance_username"
android:textColorHint="#cccccc"
android:capitalize="characters"/>

你能帮我一下吗?

EN

回答 1

Stack Overflow用户

发布于 2015-01-05 17:07:37

与其大写,不如尝试一下android:inputType="textCapCharacters"。在Android docs上查看

代码语言:javascript
复制
<EditText
android:id="@+id/etUserName"
android:layout_width="300dp"
android:layout_height="50dp"
android:background="@drawable/button_default_bg"
android:padding="10dp"
android:layout_margin="5dp"
android:hint="@string/entrance_username"
android:textColorHint="#cccccc"
android:inputType="textCapCharacters"/>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27776130

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档