Implemented criteria-based ArrayAdapter.