There is an Activity, Adapter, RecyclerView, CityModel. I want to do a search that I would search among 1000 items. But so that when you enter letters, automatically filtered a list of 1000 items. If anyone has useful lessons or articles, I will be glad to see them. Thank you in advance. PS I do not want to load all 1000 elements at once. PPS I just need a competent search implementation.

  • 2
  • 2
    I can arrange it as an answer with a translation into Russian, if I don’t master English - Vladyslav Matviienko
  • There is a very detailed answer in English, SoF, but this is an “industrial” implementation. If you need it easier, it’s enough to implement the Filterable interface in the adapter and associate the adapter with the SearchView widget (as in the first comment) - pavlofff
  • @metalurgus not all cool! Thank you) - Satanist Devilov
  • @SatanistDevilov, it will be nice, incl. in the extraction of reputation, if you yourself translate the answer. This may help other visitors to the page) - Yuriy SPb ♦

0