我正在使用RealmRecyclerViewAdapter。 我的问题是实施一个Filterable 。 这是代码: private class AirportAdapter extends RealmRecyclerViewAdapter<AirportR,RecyclerView.ViewHolder> implements Filterable { Context context; OrderedRealmCollection<AirportR>listAirports; public AirportAdapter(Context activity, OrderedRealmCollection<AirportR>airports) { super(activity,airports, true); this.context = activity; this.listAirports = airports; } @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.airport_show, parent,false); AirportClass holder = new AirportClass(view); return holder; } @Override public void onBindViewHolder(RecyclerView.ViewHolder holder, […]