code: public static ProgressBarFragment newInstance(@AttrRes int style) {
          ProgressBarFragment frag = new ProgressBarFragment();
          Bundle args = Fragments.arguments(frag);
          args.putInt(STYLE, style);
          return frag;
      }
docs: Create a ProgressBar with the style of the theme attribute.