I want to have an EditText which is multi Line and First Letter of a Sentence to be capital. I'm using:
<EditText
android:id="@+id/editText2"
android:layout_width="300dp"
android:layout_height="150dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="32dp"
android:layout_marginTop="67dp"
android:background="#ddebed"
android:ems="10"
android:inputType="textMultiLine|textCapSentences"
android:singleLine="false"
android:text="@string/same" />
I can acheive both: MultiLine and CapSentences. But, When I press 'Space key' after a word, It goes to a new line. How do I prevent it?
The android:text="@string/same" refers to <string name="same">\n \n \n Regards: Principal</string>
So, The problem is being caused by \n's.
I want to have an EditText which has some already typed text in next Line, And Allow User to enter some text in First 'n' lines.