code: @Override
      protected View createProgressBar() {
          mProgressBar = new ProgressBar(getContext(), null, android.R.attr.progressBarStyleHorizontal);
          if(mProgress>=0){
              mProgressBar.setProgress(mProgress);
          }
          if(mMax>=0){
              mProgressBar.setMax(mMax);
          }
          return mProgressBar;
      }
docs: create progressbar
  @return