top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Android: Sentence case in EditText

+1 vote
292 views

I have added android:inputType="textMultiLine|textCapSentences" for edittext however the first alphabet is not becoming capital. Please suggest a solution.

posted Aug 1, 2016 by Akshay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

This could be device specific issue,

Try to add this attribute, however this is deprecated,

android:capitalize="sentences"

If not try to apply it in Java file,

TextView txtCapitalize = (TextView) findViewById(R.id.txtCapitalize);
txtCapitalize.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);

Hope this helps.

answer Aug 4, 2016 by Vinod Kumar K V
Similar Questions
+2 votes

How to send the 3 edittext values and 2 spinner values as a single message to particular number while clicking send button?

0 votes

AIDL make the interface easy to write,but the android programmer not totally use aidl anywhere, some case such as ActivityManagerService(they use ActivityManagerNative) not use aidl to descript the interface, neighter ApplicationThread(they use ApplicationThreadNative).

So why they not use aidl in these cases ? cant or something else?

...