code: @Override
      public View getDropDownView(int position, View convertView, ViewGroup parent) {
          // depending on the position, use super method or create our own
          // we don't need to inflate a footer view if it uses the default resource, the superclass will do it:
          if(footer == null || footerResource == 0 || position != getCount()-1) {
              // we have a normal item or a footer with same resource
              return setTextsAndCheck(inflater.inflate(dropDownResource, parent, false), getItem(position), true);
          } else {
              // if we want the footer, create it:
              return setTextsAndCheck(inflater.inflate(footerResource, parent, false), footer, true);
          }
      }
docs: {@inheritDoc}