One thing you could do is: change the cursor query to "where id >= word_id -
10", where word_id is the id of the word the user searched for.

Another is to use a count query for the word, to find out its position
within the dictionary, and then setting the list view's position based on
that. This assumes that you feed the entire dictionary to the list view.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

07.11.2010 18:40 пользователь "Rutton" <[email protected]> написал:

The thing is, the BaseAdapter providing the info for the ListView does
not have a list, it retrieves the items directly from the database,
based on an offset. This is needed because the size of this list would
be huge (about 100000 entries). I have tried it with adding a lookup
offset to the position parameter in BaseAdapter:getView(int
position,.. ). This results in retrieving appropriate results starting
with the search result and propper scrolling through the data records.
But with this it is not possible to scroll before that initially added
offset. So I am noch lucky with the behaviour yet.

--

You received this message because you are subscribed to the Google
Groups "Android Developers" group...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to