-
-
Notifications
You must be signed in to change notification settings - Fork 136
Searching
Mukesh Solanki edited this page Sep 1, 2018
·
1 revision
The library already provides the mechanism for searching and is enabled by default. To toggle the searching you need to call canSearch()
on the builder. Below is a code snippet of how you can toggle it.
CountryPicker.Builder builder =
new CountryPicker.Builder().with(Context)
.listener(OnCountryPickerListener).canSearch(false);
You can even change the search icon in the library and replace it will a custom icon. You can learn more about it in Styling
Country Picker is an independent project with ongoing development and support made possible thanks to donations made by these awesome backers. If you'd like to join them, please consider: