code: public static ProgressLayout wrap(final View targetView){
          if(targetView==null){
              throw new IllegalArgumentException();
          }
  
          final ProgressLayout progressLayout = new ProgressLayout(targetView.getContext());
          progressLayout.attachTo(targetView);
          return progressLayout;
      }
docs: create a ProgressLayout to wrap and replace the targetView.
  Note: if you attachTo targetView on 'onCreate' method,targetView may be not layout complete.
  
  @param targetView
  @return