public void setTextSpacing(int spacingPixels) {
    mScaledTextSpacing = spacingPixels;
    requestLayout();
  }
Set the required spacing between title segments.

@param spacingPixels Spacing between each title displayed in pixels
sample/src/main/java/android/support/v4/view/PagerTitleStripV22.java