Created
January 23, 2020 20:00
-
-
Save AmaroNeto/be8597f848811a26aa1523f59b3cadbe to your computer and use it in GitHub Desktop.
AdapterObject-9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener { | |
override fun onQueryTextSubmit(query: String): Boolean { | |
adapter?.filter?.filter(query) | |
return false | |
} | |
override fun onQueryTextChange(query: String): Boolean { | |
adapter?.filter?.filter(query) | |
return false | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment