I have my own dictionary application WordYard and in that whenever we type in AutoCompleteTextView i am showing the words list in dropdown.
In addTextChangedListener of autoCompleteTextView i am querying for written text in sqlite database. Since database is very huge of 1.5 lac words it takes time to make the arraylist of particular text.
Suppose I wrote 'A' then this string will searched in database and written inside arraylist of limit 15 data starting from 'A'. On scrolling the dropdown list i am adding next 15 words in getView of adapter.
Scrolling is fine but whenever i type in autocompleteTextview to read 15 words from database also it take time if we write faster. Please tell me if there is any other method i can do it to make my app better.
Aucun commentaire:
Enregistrer un commentaire