arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 667 forks source link

How to implement suggestions with recent searches ? #331

Open tkintonis opened 5 years ago

tkintonis commented 5 years ago

Instead of using a static Arraylist like :
private static List sColorSuggestions = new ArrayList<>(Arrays.asList( new ColorSuggestion("green"), new ColorSuggestion("blue"), ....));'

To use a list with the most recent searches as suggestions.