code: @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  
          if (!isPaddingSet && mViewPager != null) {
              int paddingForViewPager = this.getMeasuredWidth() / mPaddingRatio;
              mViewPager.setPadding(paddingForViewPager, mViewPager.getPaddingTop(), paddingForViewPager, mViewPager.getPaddingBottom());
  
              if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                  mViewPager.setPageMargin(-(int) (((float) mViewPager.getPaddingLeft() + (float) mViewPager.getPaddingRight()) * 2.0f));
              }
  
              isPaddingSet = true;
          }
      }
docs: Apply a {@link android.support.v4.view.ViewPager#setPadding(int, int, int, int)} and
  {@link android.support.v4.view.ViewPager#setPageMargin(int)} in order to get a nicer animation
  on the {@link android.support.v4.view.ViewPager} inside the {@link CircularBar}