Hey guys i am using edit text in my application.
Problem arises if user touches enter button on soft keyboard then the cursor drops down to
new line and the user starts writting on new line.
For ex the user types :-
hey
guys
instead of hey guys
Then if i try getting the text from edit Text i am shown first hey and then next log debugger shows guys so the issue is that i am able to post some part of the message only to the server not the complete message.
Thanks in advance
Try something like this:
also it might help to set the
android:linesattribute of yourEditTextto1.