code: public void setColorStateList(ColorStateList tintStateList) {
          if (tintStateList == null)
              tintStateList = ColorStateList.valueOf(Color.BLACK);
          mColorStateList = tintStateList;
          int[] state = getState();
          changeColor(tintStateList.getColorForState(state, tintStateList.getDefaultColor()));
      }
docs: Set the Tint ColorStateList
  
  @param tintStateList ColorStateList