Enter key starting a new line in EditText instead of submitting the text (Android)

Set the singleLine property on your EditText widget to true:

<EditText
    android:singleLine="true"
    android:id="@+id/myEditText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="@string/addItemHint"
    android:imeOptions="actionDone"
/>

android:inputType="textMultiLine"

adding this property in edittext will solve the problem


android:singleLine="true" is depricated, use

android:maxLines="1"
android:inputType="text" 
android:imeOptions="actionNext"