title: How Can Refresh RecyclerView Items After Update
body: <p>I have a <code>RecyclerView</code> and I update the Data in the adapter, my problem is that After Change I can not refresh <code>RecyclerView</code> Data.</p>
  
  <p>i used <code>notifyDataSetChanged();</code> but is doesn't work</p>
  
  <p>UpdateStudent edits the student name, the problem is that after the change, <code>RecyclerView</code> needs to refresh list</p>
  
  <h3>ReyclerView Adapter :</h3>
  
  <pre><code>public class RecyclerViewAdapter_StudentList extends RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; {
  
      List&lt;StudentTable&gt; tableData = new ArrayList&lt;&gt;();
  
      Context context;
  
      private LayoutInflater mInflater;
  
      public RecyclerViewAdapter_StudentList(Context context, List&lt;StudentTable&gt; tableData) {
          this.mInflater = LayoutInflater.from(context);
          this.context = context;
          this.tableData = tableData;
      }
  
      public class itemHolder extends RecyclerView.ViewHolder {
  
          TextView studentName;
  
          return new itemHolder(view);
      }
  }
  </code></pre>
  
  <h3>onBindViewHolder</h3>
  
  <pre><code>@Override
  public void onBindViewHolder(final RecyclerView.ViewHolder holder, final int position) {
  
      itemHolder itemHolder = (itemHolder) holder;
  
      String studentName = tableData.get(position).getStudentName();
  
      itemHolder.studentName.setText(studentName);
  
      itemHolder.editStudent_Button.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v)
          {           
              String studentName_new = studentName_EditText.getText().toString();
  
              database.UpdateStudent(classId , studentName_new);
  
              notifyDataSetChanged();// does not work           
          }      
      }
  }
  </code></pre>