@Test public void getViewTypeCount() throws Exception { assertThat(autoCompleteAdapter.getViewTypeCount(), is(2)); Filter filter = autoCompleteAdapter.getFilter(); performFiltering(filter, "it"); assertThat(autoCompleteAdapter.getViewTypeCount(), is(2)); }
@Override public int getViewTypeCount() { return typeAdapters.size() + 1; }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public int getViewTypeCount() { return typeAdapters.size() + 1; } }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public int getViewTypeCount() { return typeAdapters.size() + 1; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public int getViewTypeCount() { return typeAdapters.size() + 1; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); @Override int getCount(); @Override Object getItem(int position); @Override long getItemId(int position); @Override boolean hasStableIds(); @Override int getViewTypeCount(); @Override int getItemViewType(int position); @Override @NonNull View getView(int position, View convertView, @NonNull ViewGroup parent); @Override @NonNull Filter getFilter(); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public int getViewTypeCount() { return typeAdapters.size() + 1; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); @Override int getCount(); @Override Object getItem(int position); @Override long getItemId(int position); @Override boolean hasStableIds(); @Override int getViewTypeCount(); @Override int getItemViewType(int position); @Override @NonNull View getView(int position, View convertView, @NonNull ViewGroup parent); @Override @NonNull Filter getFilter();  }