filtering custom adapter IndexOutOfBoundsException
问题 I'm novice at android. My custom Adapter cause exception when filtering. here is my code. private class DeptAdapter extends ArrayAdapter implements Filterable { private ArrayList<Dept> items; private ArrayList<Dept> mOriginalValues; public DeptAdapter(Context context, int textViewResourceId, ArrayList<Dept> items) { super(context, textViewResourceId, items); this.items = items; } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; if (v ==