Я пытаюсь реализовать AutoCompleteTextView с многострочным текстом и с нажатой клавиатурой. Но кнопка done не отображается на клавиатуре (показывает кнопку ввода). То же самое, что я пробовал с android:singleLine="true"
, и текст поставляется в одной строке с кнопкой «Готово».AutoCompleteTextView с нажатой клавиатурой и maxLines
<AutoCompleteTextView
android:id="@+id/txtVillageName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/edt_border"
android:cursorVisible="true"
android:maxLines="4"
android:hint="Enter your location"
android:imeOptions="actionDone"
android:textColor="@color/text_color"
android:textColorHint="@color/lblColor"
android:textSize="@dimen/text_size_large" />
добавить inputtype в XML –
Возможный дубликат [Закончили не работает в softKeyboard в автозаполнения TextView в Android] (HTTP: // StackOverflow .com/questions/3109516/done-is-not-work-in-softkeyboard-in-autocomplete-textview-in-android) –
Один вопрос 4 u !, вы хотите 4 строки с сделанным imeOption, как вы нажмете enter для следующая строка? –