title: RecyclerView Adapter not updating view content
body: <p>I having a recyclerview with GridLayoutManager, it populating the grid properly but not updating the data.</p>
  
  <p>Below is my code,</p>
  
  <pre><code>public class AppsGridViewAdapter extends RecyclerView.Adapter&lt;AppsGridViewAdapter.GridViewHolder&gt;{
  
  private ArrayList&lt;App&gt; appArrayList;
  private Context context;
  
  public AppsGridViewAdapter(Context context,ArrayList&lt;App&gt; appArrayList){
      this.appArrayList = appArrayList;
      this.context = context;
  }
  
  public static class GridViewHolder extends RecyclerView.ViewHolder{
  
      CompoundAppButton compoundAppButton;
      public GridViewHolder(CompoundAppButton itemView){
          super(itemView);
          compoundAppButton = (CompoundAppButton)itemView;
      }
  
  }
  
  @Override
  public GridViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      CompoundAppButton appButton = new CompoundAppButton(context,null);
      return new GridViewHolder(appButton);
  }
  
  @Override
  public void onBindViewHolder(GridViewHolder holder, int position) {
      App app = appArrayList.get(position);
      holder.compoundAppButton.updateButtonConfig(app);
  }
  
  
  @Override
  public int getItemCount() {
      return appArrayList.size();
  }
  }
  </code></pre>
  
  <p>Having valid values in the list, but not updating. Where CustomAppButton is a customview. Anyone can help me why it doesnt update.</p>
  
  <p>UPDATE:
  I calling recyclerview from my activity, below is the specific code</p>
  
  <pre><code>recyclerView = (RecyclerView)findViewById(R.id.recycler_view);
  recyclerView.addItemDecoration(new MarginDecoration(this));
  recyclerView.setHasFixedSize(true);
  recyclerView.setLayoutManager(new GridLayoutManager(this, 3));
  AppsGridViewAdapter adapter = new AppsGridViewAdapter(this,appList);
  recyclerView.setAdapter(adapter);
  </code></pre>
  
  <p>The activity contains only recyclerview.</p>
  
  <p>updateButtonConfig is a function in CustomAppButton class, this is where view is updated. getting data to this function, have checked the log. </p>
  
  <pre><code>public void updateButtonConfig(App app){
      Picasso.with(context)
              .load(app.getAppIcon())
              .placeholder(R.drawable.app_icon)
              .into(appIcon);
      appName.setText(app.getAppName());
      category.setText(app.getAppCategory());
      price.setText(app.getAppPrice());
      appPackage = app.getAppPackage();
  }
  </code></pre>