@Override public void showSuggestions(List<String> suggestions){
  if (suggestions.size() > 0) {
    ArrayAdapter<String> suggestionsAdapter=new ArrayAdapter<>(this,android.R.layout.simple_dropdown_item_1line,suggestions);
    searchEditText.setAdapter(suggestionsAdapter);
    searchEditText.showDropDown();
  }
 else {
    searchEditText.dismissDropDown();
  }
}

@ Override public void showSuggestions ( List < String > suggestions ) { if ( suggestions . size ( ) > 0 ) { ArrayAdapter < String > suggestionsAdapter = new ArrayAdapter < > ( this , android . R . layout . simple_dropdown_item_1line , suggestions ) ; searchEditText . setAdapter ( suggestionsAdapter ) ; searchEditText . showDropDown ( ) ; } else { searchEditText . dismissDropDown ( ) ; } }
receives a list of strings that contains suggestions related with the text currently entered at the autocompletetextview
