Chapter 12
Custom Search Suggestion Provider
Android search is too flexible not to customize it. Because we used a pre-built suggestion provider in the last chapter, many customizable features of a suggestion provider were hidden in the SearchRecentSuggestionsProvider and not discussed. We explore these details in this chapter by implementing a custom suggestion provider called a SuggestUrlProvider.
We start by explaining how SuggestUrlProvider is expected to work. We will give you all the necessary code snippets to implement the provider, and these snippets should provide a detailed idea of how to build a custom suggestion provider. We will also show you how this custom suggestion provider is put to use by showing it in a sample application. ...
Get Expert Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.