Currently in Android Studio 2.2.3 if you are using
android:singleLine="true"
The IDE gives a warning that it is deprecated using maxlines instead.
android:maxLines="1"
However maxLines does not solve the problem. The solution is to simply add the inputType attribute. Example:
<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/actionDoneDemo" android:layout_below="@id/nameET" android:imeOptions="actionDone" android:hint="Action Done Demo" android:inputType="text"/>
Akash Chugh Feb 02 '17 at 2:47 on 2017-02-02 02:47
source share