Skip to content Skip to sidebar Skip to footer

Set Searchview Threshold To Zero

I am using SearchView in android , i setting an adapter to search view, but suggestion popup box showing after one character, because i set Threshold on 1 ( it is not accept number

Solution 1:

Use Appcompact activity with v7 Searchview and set threshold as follows,

AutoCompleteTextView searchAutoCompleteTextView = (AutoCompleteTextView) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);
searchAutoCompleteTextView.setThreshold(0);

Post a Comment for "Set Searchview Threshold To Zero"