title: Update recyclerview on Edittext text change
body: <p>I have a Edittext and a recyclerview below it in fragment. The recyclerview row item has a textview. I have set the adapter and everything is working fine. I would like to change each item of the recyclerview with text in edittext and somehow it's not working. I tried with  itemArrayAdapter.notifyDataSetChanged() on getListForRv() method.</p>
  
  <pre><code>@Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      View view = inflater.inflate(R.layout.fragment_fonts, container, false);
  
      itemList = new ArrayList&lt;FontItem&gt;();
  
      EditText editText = view.findViewById(R.id.edit_text);
      itemArrayAdapter = new ItemArrayAdapter(R.layout.recyclerview_item, itemList);
  
  
      recyclerView = (RecyclerView) view.findViewById(R.id.font_list);
  
      recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
      recyclerView.setItemAnimator(new DefaultItemAnimator());
      recyclerView.setAdapter(itemArrayAdapter);
      getListForRv(10);
  
      editText.addTextChangedListener(new TextWatcher() {
          @Override
          public void beforeTextChanged(CharSequence s, int start, int count, int after) {
  
          }
  
          @Override
          public void onTextChanged(CharSequence s, int start, int before, int count) {
              getListForRv(90);
          }
  
          @Override
          public void afterTextChanged(Editable s) {
              getListForRv(90);
  
          }
      });
  
  
      return view;
  }
  
  private void getListForRv(int k) {
      for (int i = k; i &lt; 1000; i++) {
          itemList.add(new FontItem("Item " + i));
      }
      itemArrayAdapter.notifyDataSetChanged();
  }
  </code></pre>