This example uses SearchView to allow the user to search for any contact. The user can enter a substring of the contact name or one of his phone numbers.
This is a modified version of SearchView. Unlike the standard SearchView this version allows us to use different text for searching. The item itself can be any type of object.
Note that the phone number "search text" is stripped from any non-digits characters. In this implementation the query text (the user input) is not stripped, the user is expected to enter the digits only (or the contact's name).
This is a modified version of SearchView. Unlike the standard SearchView this version allows us to use different text for searching. The item itself can be any type of object.
Note that the phone number "search text" is stripped from any non-digits characters. In this implementation the query text (the user input) is not stripped, the user is expected to enter the digits only (or the contact's name).