Setting EditText imeOptions to actionNext has no effect

前端 未结 12 1056
终归单人心
终归单人心 2020-12-13 11:46

I have a fairly complex (not really) xml layout file. One of the views is a LinearLayout (v1) with two children: an EditText(v2) and another Linear

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 12:09

    Finally i have got sure solution for this issue Just add these 3 lines in your edit text and it will be working fine

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

    Here you can add maxLines according to your requirement. Do not use singleLine as it is deprecated now. Good luck!

提交回复
热议问题