code: public void setPresetTransformer(int transformerId){
          for(Transformer t : Transformer.values()){
              if(t.ordinal() == transformerId){
                  setPresetTransformer(t);
                  break;
              }
          }
      }
docs: set a preset viewpager transformer by id.
  @param transformerId