This file contains hidden or 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
| /* configure Search */ | |
| private void configureSearch() { | |
| // add text change listener for searchView | |
| searchView.addTextChangedListener(searchTextWatcher); | |
| // set search Suggestion Adapter | |
| searchSuggestionAdapter = new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line); | |
| searchView.setAdapter(searchSuggestionAdapter); | |
| searchView.setThreshold(2); |
This file contains hidden or 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
| private boolean isLoading = false; | |
| private boolean isEndOfList = false; | |
| private String currentPage = "1"; | |
| . | |
| . | |
| . | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| . |
NewerOlder