title: Search through RecyclerView using Searchview
body: <p>I want to search through <code>RecyclerView</code>, I have <code>List&lt;BaseOfCards&gt;</code>  (BaseOfCards is my getter&amp;setter class) 
  My <strong>RecyclerViewAdapter</strong> :</p>
  
  <pre><code>public class RecyclerViewAdapter extends RecyclerView.Adapter&lt;RecyclerViewAdapter.MyViewHolder&gt; {
  
  
  private LayoutInflater inflater;
  private List&lt;BaseOfCards&gt; items;
  
  //private int itemLayout;
  //String cardvalue;
  private Activity mActivity;
  
  public RecyclerViewAdapter(Activity mActivity, Context context, List&lt;BaseOfCards&gt; items) {
      this.mActivity = mActivity;
      inflater = LayoutInflater.from(context);
      this.items = items;
      //this.itemLayout = itemLayout;
  }
  
  @Override
  public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
      View view = inflater.inflate(R.layout.custom_row, parent, false);
      MyViewHolder holder = new MyViewHolder(view, mActivity);
      return holder;
  }
  
  @Override
  public void onBindViewHolder(MyViewHolder holder, int position) {
  
      BaseOfCards item = items.get(position);
      holder.title.setTag(item);
      holder.title.setText(item.getCardName());
  }
  
  @Override
  public int getItemCount() {
  
      return items.size();
  }
  
  public static class MyViewHolder extends RecyclerView.ViewHolder {
      private Activity mActivity;
      TextView title;
      ImageView titileImageView;
  
      public MyViewHolder(View itemView, Activity mActivity) {
  
          super(itemView);
  
          titileImageView = (ImageView) itemView.findViewById(R.id.image_country);
  
  
          title = (TextView) itemView.findViewById(R.id.listText);
          this.mActivity = mActivity;
  
      }
  }
  
  }
  </code></pre>
  
  <p>I add SearchView to my menu and initialize it in <strong>MainActivity</strong>:</p>
  
  <pre><code> MenuItem menuItem = menu.findItem(R.id.action_search1);
      searchView = (SearchView) MenuItemCompat.getActionView(menuItem);
      SearchManager manager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      searchView.setIconifiedByDefault(true);
  </code></pre>
  
  <p>What do I need to do next? Make my <strong>RecyclerViewAdapter</strong> <code>implement Filterable</code> or what? Or just make class <code>filter</code> in *RecyclerViewAdapter** and just call it from my <strong>MainActivity</strong> ?</p>