title: RecyclerView blocking ui thread during updates
body: <p>There are more than 200 items in my list. RecyclerView is updated regularly (Every 10 seconds) . RecyclerView blocking ui thread for few seconds during updates.  I'm using  <code>notifyDataSetChanged</code> method for refresh recyclerview. Is there another way to prevent freezing ? By the way I don't want use pagination.</p>
  
  <p><em>This method run every 10 seconds :</em>        </p>
  
  <pre><code>public void refreshAssetList(List&lt;Asset&gt; newAssetList){
       recyclerViewAdapter.setAssetList(newAssetList);
       recyclerViewAdapter.notifyDataSetChanged();
  }
  </code></pre>
  
  <p><em>RecyclerViewAdapter class :</em> </p>
  
  <pre><code>public class AssetListRecyclerViewAdapter extends RecyclerView.Adapter&lt;AssetListRecyclerViewAdapter.BaseViewHolder&gt; {
  
      private List&lt;Asset&gt; assetList;
      Context context;
  
      public AssetListRecyclerViewAdapter(List&lt;Asset&gt; assetList, Context context) {
          this.assetList = assetList;
          this.context = context;
      }
  
      public void setAssetList(List&lt;Asset&gt; assetList) {
          this.assetList = assetList;
      }
  
      @Override
      public BaseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              View itemLayoutView = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_asset, null);
              return new DetailViewHolder(itemLayoutView);
      }
  
      @Override
      public void onBindViewHolder(BaseViewHolder holder, int position) {
          Asset asset = assetList.get(position);
          Last last = asset.getLast();
          if (holder.getItemViewType() == TYPE_DETAIL) {
              DetailViewHolder mHolder = (DetailViewHolder) holder;
              mHolder.dateTextView.setText(last.getDate());
              mHolder.brandTextView.setText(asset.getMc());
          }
      }
  
       class DetailViewHolder extends BaseViewHolder {
  
          @Bind(R.id.brandTextV)
          TextView brandTextView;
          @Bind(R.id.dateTextV)
          TextView dateTextView;
  
           DetailViewHolder(View itemLayoutView) {
              super(itemLayoutView);
              ButterKnife.bind(this, itemLayoutView);
          }
      }
  
  }
  </code></pre>