Is there a way to limit the number of displayed suggestions, when using the search interface with custom search suggestion?
Thanks!
Is there a way to limit the number of displayed suggestions, when using the search interface with custom search suggestion?
Thanks!
It's very simple actually.
Firstly in your
ContentProvider
, define a variable to have a reference to:In your
Cursor query
@Override of the provider define something to hold your limit valueThen pass the
limit
to theSqliteQueryBuilder
:You can then use it with a
contentResolver
like so: