你好我的编辑文本面临问题。Edittext首字母不自动大写
的EDITTEXT的XML粘贴如下:
<EditText
android:id="@+id/edttxt_description_taskdescription"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/padding_large"
android:layout_marginTop="@dimen/margin_.5x"
android:background="@color/white"
android:lines="2"
android:gravity="top"
android:hint="@string/activity_task_description_name_hint"
android:imeOptions="actionDone"
android:singleLine="false"
android:inputType="textMultiLine|textCapSentences"
android:maxLength="85"
android:textSize="@dimen/text_16pixels" />
问题:我要自动大写的EditText的第一个字母,但情况并非如此。请帮忙 !
注:我想要一个多行EditText。
其实这个代码正在启动字作为资本你letter.Could请verify.Do你需要在一条线上的大写字母每一个字每一个线? –
尝试在inputType中添加textCapWords,如android:inputType =“textMultiLine | textCapWords | textCapSentences”。 – mubeen
我刚刚测试了你的代码,它适用于我。你是否在你的代码中编辑地修改EditText? – babadaba