@Override
    public void bindViewHolder(ViewHolder holder, int position) {
      Site place = mData.get(position);
      String title = place.getName();
      String subtitle = place.getLocality();
      boolean isTransitStop = place.isTransitStop();

      // Use this for adding an astrix for google places results and to show attribution at the end.
      //            title = title + "*";
      //            CharacterStyle colorStyle = new
      // ForegroundColorSpan(mContext.getResources().getColor(R.color.body_text_2));
      //            CharacterStyle fontSize = new RelativeSizeSpan(0.8f);
      //            CharacterStyle superScript = new SuperscriptSpan();
      //            CharSequence entryTitle = SpanUtils.createSpannable(title,
      // Pattern.compile("\\*"), colorStyle, fontSize, superScript);
      //            ViewHelper.setText(holder.text1, entryTitle);
      ViewHelper.setText(holder.text1, title);
      if (subtitle != null) {
        ViewHelper.setText(holder.text2, subtitle);
        holder.text2.setVisibility(View.VISIBLE);
      } else {
        holder.text2.setVisibility(View.GONE);
      }
      if (place.hasType()) {
        if (place.isTransitStop()) {
          holder.icon.setImageResource(R.drawable.ic_transport_transit_20dp);
        } else {
          holder.icon.setImageResource(R.drawable.ic_place_24dp);
          //                    holder.icon.setImageResource(R.drawable.ic_transport_bus_24dp);
        }
      } else {
        holder.icon.setImageResource(R.drawable.ic_history_24dp);
      }
      ViewHelper.tint(holder.icon, holder.icon.getResources().getColor(R.color.icon_default));
    }
 @Override
 public void bindViewHolder(ViewHolder holder, int position) {
   Item item = mData.get(position);
   ViewHelper.setText(holder.text1, item.title);
   if (holder.text2 != null) {
     holder.text2.setVisibility(View.GONE);
   }
   if (holder.icon != null) {
     holder.icon.setImageResource(item.icon);
   }
 }