code: public void setupWithViewPager(@NonNull ViewPager viewPager) {
          PagerAdapter pagerAdapter = viewPager.getAdapter();
          List<ICategoryItem> categoryItems = new ArrayList<>(pagerAdapter.getCount());
          ILoopBarPagerAdapter loopBarPagerAdapter =
                  pagerAdapter instanceof ILoopBarPagerAdapter
                          ? (ILoopBarPagerAdapter) pagerAdapter : null;
          for (int i = 0, size = pagerAdapter.getCount(); i < size; i++) {
              categoryItems.add(new CategoryItem(
                      loopBarPagerAdapter != null ? loopBarPagerAdapter.getPageDrawable(i) : null,
                      String.valueOf(pagerAdapter.getPageTitle(i))
              ));
          }
          setCategoriesAdapter(new SimpleCategoriesAdapter(categoryItems));
      }
docs: You can setup {@code {@link LoopBarView#mOuterAdapter }} through {@link ViewPager} adapter.
  Your {@link ViewPager} adapter must implement {@link ILoopBarPagerAdapter} otherwise - the icons will not be shown
  
  @param viewPager - viewPager, which must have {@link ILoopBarPagerAdapter}