I want forcefully add first letter capital in EditText
. So i can search about i get lots of solution but i Notice that user can shift and enter lower characters.
I tried below code :
android:inputType="textCapSentences|textCapWords"
Also I tried pragmatically :
EditText editor = new EditText(this);
editor.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
Any other solution. If user shift and enter lower characters it's automatically converted in to Upper characters.