@SuppressWarnings("unchecked")
        @Override
        protected void publishResults(CharSequence constraint, FilterResults results) {
            filteredEntries = (ArrayList<String>)results.values;
            notifyDataSetChanged();
            clear();
            int count = filteredEntries.size();
            for(int i = 0; i<count; i++){
                add(filteredEntries.get(i));
                notifyDataSetInvalidated();
            }
            Log.i(TAG, "publishing results with size: " + count);
        }
Setter for non-selected background resource id
jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/CustomArrayAdapter.java