How to display Android SearchView suggestions in a customized view

757 Views Asked by At

Amazon app search suggestions

The Search suggestions in Amazon app has rows that span the full width of the display, and have an upward pointing arrow on the right and a cross mark on the left.

I am getting default row look upon using Android Searchview functionality(Just content from query result). How can I make it look customized, like the one in Amazon app. Does Android provide a functionality to hookup custom adapters etc ? OR does the whole SearchView have to be implemented to achieve such customized looks.

1

There are 1 best solutions below

0
Sviatoslav Melnychenko On

There is this method SearchView.setSuggestionsAdapter. You could use custom adapter to change a layout of suggestions.