private View fillStandTitleView(View convertView, int position) {
   EliminatedTotalEntity entity = getItem(position);
   if (convertView == null || !(convertView instanceof DivisionDoubleTitleView)) {
     convertView = LayoutInflater.from(context).inflate(R.layout.view_division_double_title, null);
   }
   ((DivisionDoubleTitleView) convertView).setTitle(entity.getName());
   return convertView;
 }
 @Override
 public int getItemViewType(int position) {
   EliminatedTotalEntity entity = getItem(position);
   if (entity.getName() != null && !entity.getName().equals("")) {
     if (entity.getGroups() != null && entity.getGroups().equals("0")) {
       return 1;
     } else return 0;
   } else if (entity.getRank() != null && !entity.getRank().equals("")) {
     return 2;
   } else {
     return 3;
   }
 }
  private View fillEliminatedView(View convertView, int position) {
    EliminatedHolder eliminatedHolder = null;
    EliminatedTotalEntity entity = getItem(position);
    if (convertView == null) {
      convertView = LayoutInflater.from(context).inflate(R.layout.eliminated_item_per, null);
      eliminatedHolder = new EliminatedHolder();
      setupEliminatedChildViews(convertView, eliminatedHolder);
      convertView.setTag(eliminatedHolder);
    } else if (convertView.getTag() != null && convertView.getTag() instanceof EliminatedHolder) {
      eliminatedHolder = (EliminatedHolder) convertView.getTag();
    } else {
      eliminatedHolder = new EliminatedHolder();
      convertView = LayoutInflater.from(context).inflate(R.layout.eliminated_item_per, null);
      setupEliminatedChildViews(convertView, eliminatedHolder);
      convertView.setTag(eliminatedHolder);
    }

    if (entity.getStart_play() != null && !entity.getStart_play().equals("")) {
      try {
        utcFormater.setTimeZone(TimeZone.getTimeZone("UTC"));
        Date mGmsDate = utcFormater.parse(entity.getStart_play());
        long mGmsTime = mGmsDate.getTime();
        String localTime = localFormater.format(mGmsTime);
        eliminatedHolder.time.setText(localTime);
      } catch (ParseException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      eliminatedHolder.back.setBackgroundColor(
          context.getResources().getColor(R.color.total_point_back));
    } else {
      eliminatedHolder.time.setText(context.getString(R.string.ranking_total));
      eliminatedHolder.back.setBackgroundColor(
          context.getResources().getColor(R.color.total_point));
    }
    if (entity.getTeam_A_name() != null) {
      // if (App.LOGOS.containsKey(entity.getTeam_A_name())) {
      // // mImageLoader.displayImage("drawable://" +
      // // App.LOGOS.get(entity.getTeam_A_name()),
      // // eliminatedHolder.fs_a_ico, options,null);
      // eliminatedHolder.fs_a_ico.setImageResource(App.LOGOS.get(entity.getTeam_A_name()));
      // } else {
      mImageLoader.displayImage(
          Urls.PIC_PATH + entity.getTeam_A_id() + ".png", eliminatedHolder.fs_a_ico, options, null);
      // }
      eliminatedHolder.fs_a_ico.setOnClickListener(
          new TeamClick(getItem(position).getTeam_A_id(), context));
    }
    if (entity.getTeam_B_name() != null) {
      // if (App.LOGOS.containsKey(entity.getTeam_B_name())) {
      // // mImageLoader.displayImage("drawable://" +
      // // App.LOGOS.get(entity.getTeam_B_name()),
      // // eliminatedHolder.fs_b_ico, options,null);
      // eliminatedHolder.fs_b_ico.setImageResource(App.LOGOS.get(entity.getTeam_B_name()));
      // } else {
      mImageLoader.displayImage(
          Urls.PIC_PATH + entity.getTeam_B_id() + ".png", eliminatedHolder.fs_b_ico, options, null);
      // }
      eliminatedHolder.fs_b_ico.setOnClickListener(
          new TeamClick(getItem(position).getTeam_B_id(), context));
    }

    eliminatedHolder.fs_a_name.setText(entity.getTeam_A_name());
    eliminatedHolder.fs_a_name.setOnClickListener(
        new TeamClick(getItem(position).getTeam_A_id(), context));
    if (entity.getFs_A() != null
        && entity.getFs_A().equals("")
        && entity.getFs_B() != null
        && entity.getFs_B().equals("")) {
      eliminatedHolder.fs.setText("VS");
    } else {
      eliminatedHolder.fs.setText(entity.getFs_A() + ":" + entity.getFs_B());
    }
    eliminatedHolder.fs_b_name.setText(entity.getTeam_B_name());
    eliminatedHolder.fs_b_name.setOnClickListener(
        new TeamClick(getItem(position).getTeam_B_id(), context));
    return convertView;
  }
  private View fillStandView(View convertView, int position) {
    StandViewHolder eliminatedHolder = null;
    EliminatedTotalEntity entity = getItem(position);
    if (convertView == null) {
      eliminatedHolder = new StandViewHolder();
      convertView =
          LayoutInflater.from(context).inflate(R.layout.standings_common_item_layout, null);
      setupChildViews(convertView, eliminatedHolder);
      convertView.setTag(eliminatedHolder);
    } else if (convertView.getTag() != null && convertView.getTag() instanceof EliminatedHolder) {
      eliminatedHolder = (StandViewHolder) convertView.getTag();
    } else {
      eliminatedHolder = new StandViewHolder();
      convertView =
          LayoutInflater.from(context).inflate(R.layout.standings_common_item_layout, null);
      setupChildViews(convertView, eliminatedHolder);
      convertView.setTag(eliminatedHolder);
    }

    if (entity.getRank() != null) {
      if (entity.getRank().equals("1") || entity.getRank().equals("2")) {
        eliminatedHolder.line.setBackgroundColor(context.getResources().getColor(R.color.title));
        eliminatedHolder.greenlinestand.setVisibility(View.VISIBLE);
        eliminatedHolder.greylinestand.setVisibility(View.INVISIBLE);
      } else {
        eliminatedHolder.line.setBackgroundColor(
            context.getResources().getColor(R.color.user_info_message));
        eliminatedHolder.greylinestand.setVisibility(View.VISIBLE);
        eliminatedHolder.greenlinestand.setVisibility(View.INVISIBLE);
      }
      eliminatedHolder.mNumber.setText(entity.getRank());
      eliminatedHolder.mTeam.setText(entity.getClub_name());
      eliminatedHolder.mTeam.setOnClickListener(
          new TeamClick(getItem(position).getTeam_id(), context));
      eliminatedHolder.ico.setOnClickListener(
          new TeamClick(getItem(position).getTeam_id(), context));
      // if (App.LOGOS.containsKey(entity.getClub_name())) {
      // // mImageLoader.displayImage("drawable://" +
      // // App.LOGOS.get(entity.getClub_name()),
      // // eliminatedHolder.ico, options,null);
      // eliminatedHolder.ico.setImageResource(App.LOGOS.get(getItem(position)
      // .getClub_name()));
      // } else {
      mImageLoader.displayImage(
          Urls.PIC_PATH + entity.getTeam_id() + ".png", eliminatedHolder.ico, options, null);
      // }
      eliminatedHolder.round.setText(entity.getMatches_total());
      eliminatedHolder.mLose.setText(entity.getMatches_lost());
      eliminatedHolder.mDraw.setText(entity.getMatches_draw());
      eliminatedHolder.mWin.setText(entity.getMatches_won());
      eliminatedHolder.mPoint.setText(entity.getPoints());
      String goal = entity.getGoals_pro();
      String conceded = entity.getGoals_against();
      eliminatedHolder.mGoalConceded.setText(goal + "/" + conceded);
    }
    return convertView;
  }