android - AutoCompleteTextView with keyboard done button and maxLines -


i trying implement autocompletetextview multiline text , keyboard done button. done button not show on keyboard (shows enter button). same thing have tried android:singleline="true" , text comes in single line done button.

 <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 location"                         android:imeoptions="actiondone"                         android:textcolor="@color/text_color"                         android:textcolorhint="@color/lblcolor"                         android:textsize="@dimen/text_size_large" /> 

add android:imeactionlabel="done" xml code

<autocompletetextview         android:id="@+id/txtvillagename"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:cursorvisible="true"         android:hint="enter location"         android:imeoptions="actiondone"         android:imeactionlabel="done"         android:singleline="true" /> 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -