mobile - predictive text input(word suggestions) not working in AutoCompleteTextView in android application development -


i have taken 1 autocompletetextview in xml like

      <autocompletetextview             android:id="@+id/myautocomplete"             android:layout_width="120dp"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"             android:completionthreshold="1"             android:ems="10" >         </autocompletetextview> 

i want that, input in autocompletetextview should work edittext in predictive mode.

when take edittext control in android, automatically enables predictive text input(word suggestions).
disable it, have use textnowordsuggestions in inputtype property.

i know, have bound autocompletetextview adapter data, right interface not ready.

so there way, adapter can android default predictive text input or other way.

which can change later on in next version of app.

i tried lot of things taking edittext control enable predictive text. autocompletetextview can used load suggestion using adapter this

        autocompletetextview textview = (autocompletetextview) findviewbyid(r.id.autocomplete_words);         myadapter adapter = new myadapter(myactivity.this, r.layout.my_row, mywords);         textview.setadapter(adapter); 

i looking replace mywords in above code android dictionary suggestion. have taken edittext.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -