I want that each word should start with capital letter in an Edittext.For example:-
john smith should be write as John Smith How can i achieve this?
I want that each word should start with capital letter in an Edittext.For example:-
john smith should be write as John Smith How can i achieve this?
Try something like this
Set
android:inputType="textCapSentences" on your EditText.
http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
programatically should be like this...
EditText etValue = new EditText(this);
etValue.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
use this one
android:inputType="textCapSentences"
my be this will work
android:capitalize="words"
more detail Here