@Override public void onBindViewHolder(CategoryViewHolder holder,int position){
  int amountDue=0;
  if (position == 0) {
    for (    Category category : mCategories) {
      amountDue+=mDueChallengeCounts.get(category.getId());
    }
    holder.bindAllCategoriesCard(amountDue);
  }
 else {
    final Category category=mCategories.get(position - 1);
    holder.bindCard(category,mDueChallengeCounts.get(category.getId()));
  }
}

@ Override public void onBindViewHolder ( CategoryViewHolder holder , int position ) { int amountDue = 0 ; if ( position == 0 ) { for ( Category category : mCategories ) { amountDue += mDueChallengeCounts . get ( category . getId ( ) ) ; } holder . bindAllCategoriesCard ( amountDue ) ; } else { final Category category = mCategories . get ( position - 1 ) ; holder . bindCard ( category , mDueChallengeCounts . get ( category . getId ( ) ) ) ; } }
called to bind the viewholder at the given position .
