code: public void setColorSchemeResources(int... colorResIds) {
          final Resources res = getResources();
          int[] colorRes = new int[colorResIds.length];
          for (int i = 0; i < colorResIds.length; i++) {
              colorRes[i] = res.getColor(colorResIds[i]);
          }
          setColorSchemeColors(colorRes);
      }
docs: Set the color resources used in the progress animation from color resources.
  The first color will also be the color of the bar that grows in response
  to a user swipe gesture.
  
  @param colorResIds