/**
   * Change the background image of the activity.
   *
   * <p>Should be a background activity
   *
   * @param v
   */
  private void changeBackgroundImage(View v) {

    TVShowSeasonImageView mpiv = (TVShowSeasonImageView) v;
    SeriesContentInfo mi = mpiv.getPosterInfo();

    if (mi.getBackgroundURL() != null) {
      BackgroundImageLoader im =
          new BackgroundImageLoader(mi.getBackgroundURL(), bgLayout, R.drawable.tvshows);
      imageExecutorService.submit(im);
    }
  }
  /*
   * (non-Javadoc)
   *
   * @see
   * android.widget.AdapterView.OnItemSelectedListener#onItemSelected(android
   * .widget.AdapterView, android.view.View, int, long)
   */
  public void onItemSelected(AdapterView<?> av, View v, int position, long id) {
    TVShowSeasonImageView mpiv = (TVShowSeasonImageView) v;

    if (previous != null) {
      previous.setPadding(0, 0, 0, 0);
      previous.refreshDrawableState();
    }

    previous = v;

    v.setBackgroundColor(Color.BLUE);
    v.setPadding(5, 5, 5, 5);
    v.refreshDrawableState();

    TextView seasonsTitle = (TextView) context.findViewById(R.id.tvShowSeasonsTitle);
    seasonsTitle.setText(mpiv.getPosterInfo().getTitle());

    changeBackgroundImage(v);
  }