message: Updated selected tab when page changes
diff: @@ -51,7 +51,7 @@ public class TabNavigationView extends BottomNavigationView implements TabView {
  PagerAdapter pagerAdapter = viewPager.getAdapter();
  if (pagerAdapter != null) {
  for (int i = 0; i < pagerAdapter.getCount(); i++) {
  - getMenu().add(Menu.NONE, Menu.NONE, i, pagerAdapter.getPageTitle(i));
  + getMenu().add(Menu.NONE, i, i, pagerAdapter.getPageTitle(i));
  }
  }
  setOnNavigationItemSelectedListener(new OnNavigationItemSelectedListener() {
  @@ -61,6 +61,20 @@ public class TabNavigationView extends BottomNavigationView implements TabView {
  return true;
  }
  });
  + viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
  + @Override
  + public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
  + }
  +
  + @Override
  + public void onPageSelected(int position) {
  + setSelectedItemId(position);
  + }
  +
  + @Override
  + public void onPageScrollStateChanged(int state) {
  + }
  + });
  }
  }
  