I have just created a basic search activity with Recent Query Suggestions using these 2 links however, i have a question in order for me to finish this.
I did a test where i searched a, then b, then c and all the way up to z and i noticed that when the search view focuses it shows all 26 of your recent search suggestions.
I don't feel that is necessary since most of the time the user already knows what they are looking for and therefore will be highly unlikely to scroll down all of their suggestions for what they've typed before.
I want to have a maximum of 10 search suggestions shown.
This is a duplicate question for this other stack overflow question however at the time of posting this question, the question in the link lacks an answer.
How do i limit the number of Recent Query Suggestions shown to 10 in Kotlin?