title: notifyDataSetChange not working on RecyclerView
body: <p>I'm working with Android's new RecyclerView but I can't get my custom adapter to refresh whenever I call one of the "notify" methods.</p>
  
  <p>I've tried calling notifyDataSetChanged, notifyItemRangeInserted and notifyItemInserted and none of them seem to work.</p>
  
  <p>Here's the code for my custom adapter. I'm basically trying to refresh a list of Strings:</p>
  
  <pre><code>package com.mycompany.myapp.adapters;
  
  import android.support.v7.widget.RecyclerView;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.LinearLayout;
  import android.widget.TextView;
  
  import com.mycompany.myapp.R;
  
  import java.util.List;
  
  public class FeedAdapter extends RecyclerView.Adapter&lt;FeedAdapter.ViewHolder&gt; {
  
      private List&lt;String&gt; mDataset;
  
      public FeedAdapter(List&lt;String&gt; dataset) {
          super();
          mDataset = dataset;
      }
  
      @Override
      public ViewHolder onCreateViewHolder(ViewGroup parent, int i) {
          LinearLayout v = (LinearLayout) LayoutInflater.from(parent.getContext())
                  .inflate(R.layout.list_item_feed, parent, false);
          v.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
                  ViewGroup.LayoutParams.WRAP_CONTENT));
      return new ViewHolder(v);
      }
  
      @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
          holder.setText(mDataset.get(position));
      }
  
      @Override
      public int getItemCount() {
          return mDataset.size();
      }
  
      public void setDataset(List&lt;Status&gt; dataset) {
          mDataset = dataset;
          // This isn't working
          notifyItemRangeInserted(0, mDataset.size());
      }
  
      public static class ViewHolder extends RecyclerView.ViewHolder {
          private TextView mFeedText;
  
          public ViewHolder(View v) {
              super(v);
              mFeedText = (TextView) v.findViewById(R.id.feed_text);
          }
  
          private void setText(String text) {
              mFeedText.setText(text);
          }
      }
  }
  </code></pre>
  
  <p>Anyone else having this issue?</p>
  
  <p>Thanks!</p>