android - How to restrict the AutoCompleteTextView dropdown dismiss on text change listener? -
i take autocomplete textview , it's change liseter event.
when enter text in it, pop fill data adapter, when again enter 1 more character, dismiss , reopen again. don't want dismiss it. remain open when enter character 1 one , change data in adapter.
xml :
<autocompletetextview android:id="@+id/autotextsearch" android:layout_width="120dp" android:layout_height="wrap_content" android:background="@drawable/search_bg" android:completionthreshold="1" android:dropdownheight="360dp" android:dropdownhorizontaloffset="-140dp" android:dropdownverticaloffset="0dp" android:dropdownwidth="400dp" android:ems="10" android:gravity="center_vertical" android:imeoptions="actiondone" android:inputtype="text" android:maxwidth="105dp" android:paddingleft="7dp" android:paddingright="5dp" android:popupbackground="@drawable/popup_search" android:singleline="true" android:textcolor="@android:color/white" android:textsize="14sp" > </autocompletetextview>
and adapter set :
dropdownlistadapter dropdownlistadapter = new dropdownlistadapter(context, r.layout.row_search, arrlistsearch); textview.setadapter(dropdownlistadapter); textview.showdropdown();
Comments
Post a Comment