在原项目PagerBottomTabStrip 基础上 增加了 getItem 方法,能设置对应 position 的 tab 属性
|  |  | 
|---|---|
|  |  | 
|  |  | 
| 仿京东重复刷新动画 | 普通效果 | 
|---|---|
|  |  | 
| Demo中的例子 | |
|---|---|
|  |  | 
xml文件
<com.ms.bottombar.PageNavigationView
        android:id="@+id/tab"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_alignParentBottom="true"
        android:background="#FFF" />
  PageNavigationView bottomTabLayout = (PageNavigationView) findViewById(R.id.tab);
  PageNavigationView.CustomBuilder custom = bottomTabLayout.custom();
  NavigationController build = custom
          .addItem(newItem(android.R.drawable.ic_menu_camera, android.R.drawable.ic_menu_camera, "相机"))
          .addItem(newItem(android.R.drawable.ic_menu_compass, android.R.drawable.ic_menu_compass, "位置"))
          .addItem(newItem(android.R.drawable.ic_menu_search, android.R.drawable.ic_menu_search, "搜索"))
          .addItem(newItem(android.R.drawable.ic_menu_help, android.R.drawable.ic_menu_help, "帮助"))
          .build();
  build.setupWithViewPager(mVpContent);
这样就实现底部导航栏功能了
 navigationController.addTabItemSelectedListener(new OnTabItemSelectedListener() {
             @Override
             public void onSelected(int index, int old) {
                 //选中时触发
             }
             @Override
             public void onRepeat(int index) {
                 //重复选中时触发
             }
         });
dependencies {
        implementation 'com.ms:bottombar:1.0.0'
        implementation 'com.github.wenchaosong:BottomBar:3.0.9'
}