@Override
  public void onBindViewHolder(final OfferDiscountRushViewHolder holder, int position) {
    final NonExclusiveOffers current = data.get(position);

    holder.card_background_offer_discount.setDrawingCacheEnabled(true);
    if (holder.brand_icon != null)
      imageLoader.DisplayImage(current.getOffer_brand_logo(), holder.brand_icon);
    if (holder.brand_name != null) holder.brand_name.setText(current.getOffer_brand_name());
    if (holder.category != null)
      holder.category.setText(
          shopistaDatabase.getMajorCategoryForGivenBrand(current.getOffer_brand_id()));
    if (holder.offer_description != null) {
      holder.offer_description.setText(current.getOffer_description());
      holder.offer_description.setTextSize(22);
      holder.offer_description.setTypeface(
          Typeface.createFromAsset(mcontext.getAssets(), "handwritingfont.ttf"));
    }
    if (holder.endDate != null) {
      holder.endDate.setText("Ends on - " + current.getOffer_end_date());
      holder.endDate.setTextSize(22);
      holder.endDate.setTypeface(
          Typeface.createFromAsset(mcontext.getAssets(), "handwritingfont.ttf"));
    }
    if (holder.card_background_offer_discount != null) {
      imageLoader.DisplayCardBackgroundImage(
          current.getOffer_image(), holder.card_background_offer_discount);
    }

    if (holder.mall_in != null) {
      Malls mall = new Malls();
      mall = shopistaDatabase.getSingleMall(current.getOffer_mall_id());
      holder.mall_in.setText("" + mall.getMall_name() + ", " + mall.getMall_area());
    }

    holder.share.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {

            Intent intent = new Intent();
            intent.setAction(Intent.ACTION_SEND);
            intent.setType("text/plain");
            intent.putExtra(
                Intent.EXTRA_TEXT,
                StaticVariables.OFFER_HEADER
                    + current.getOffer_brand_name()
                    + "\n\n"
                    + current.getOffer_description()
                    + "\n"
                    + StaticVariables.OFFER_FOOTER);
            mcontext.startActivity(Intent.createChooser(intent, "Share via"));
          }
        });

    holder.cardview.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {

            Intent increment_popularity = new Intent(mcontext, IncreasePopularityCount.class);
            increment_popularity.putExtra("offer_number", current.getOffer_number());
            mcontext.startService(increment_popularity);

            Intent intent = new Intent(mcontext, Information.class);
            intent.putExtra("brand_id", current.getOffer_brand_id());
            mcontext.startActivity(intent);
          }
        });
  }