@Override
      public void onChanged() {
        setPageCount(PagingIndicator.this.viewPager.getAdapter().getCount());
      }
Custom pager indicator for use with a {@link ViewPager}.
java/com/google/android/apps/authenticator/howitworks/PagingIndicator.java