All Projects → wenchaosong → BottomBar

wenchaosong / BottomBar

Licence: other
仿京东底部栏重复选择刷新动画,还有普通的样式和 MaterialDesign 样式

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to BottomBar

Expandablebottombar
A new way to implement navigation in your app 🏎
Stars: ✭ 467 (+3235.71%)
Mutual labels:  bottombar
Bottomify Navigation View
A nice looking Spotify like bottom navigation view
Stars: ✭ 97 (+592.86%)
Mutual labels:  bottombar
react-native-bottom-bar
Fully customizable BottomBar with unique design shape for React Native.
Stars: ✭ 74 (+428.57%)
Mutual labels:  bottombar
Animatedbottombar
A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
Stars: ✭ 797 (+5592.86%)
Mutual labels:  bottombar
Alphatabsindicator
高仿微信底部状态栏的轻量级库,非MagicIndicator那么功能庞大,简化功能符合大多数BottomTabBar应用设计需求, Lightweight Library of high imitation WeChat bottom status bar
Stars: ✭ 1,086 (+7657.14%)
Mutual labels:  bottombar
Justbar
Just a bar
Stars: ✭ 118 (+742.86%)
Mutual labels:  bottombar
Sotabbar
Light way to add Fancy bottom bar 📲
Stars: ✭ 400 (+2757.14%)
Mutual labels:  bottombar
IRBottomNavigationView
Floating Bottom Navigation/Tab System
Stars: ✭ 48 (+242.86%)
Mutual labels:  bottombar
Lottiebottomnavbar
A Customisable bottom navbar with Lottie animation
Stars: ✭ 76 (+442.86%)
Mutual labels:  bottombar
Fluidbottomnavigation Android
Fluid Bottom Navigation library for Android
Stars: ✭ 225 (+1507.14%)
Mutual labels:  bottombar
Animatedbottombar
This library allows you to show bottom navigation quickly, simply and animated.
Stars: ✭ 24 (+71.43%)
Mutual labels:  bottombar
Readablebottombar
Yet another material bottom bar library for Android
Stars: ✭ 977 (+6878.57%)
Mutual labels:  bottombar
Navbar
增强版BottomNavigationView
Stars: ✭ 132 (+842.86%)
Mutual labels:  bottombar
Chip Navigation Bar
An android navigation bar widget
Stars: ✭ 491 (+3407.14%)
Mutual labels:  bottombar
BetterBottomBar
Fork of the BottomNavigationView from the design lib to allow for view state, accessibility and colorful animations
Stars: ✭ 33 (+135.71%)
Mutual labels:  bottombar
Bottomnavigation
This Library helps users to use Bottom Navigation Bar (A new pattern from google) with ease and allows ton of customizations
Stars: ✭ 4,299 (+30607.14%)
Mutual labels:  bottombar
Material Bottomnavigation
Bottom Navigation widget component inspired by the Google Material Design Guidelines at https://www.google.com/design/spec/components/bottom-navigation.html
Stars: ✭ 1,375 (+9721.43%)
Mutual labels:  bottombar
BottomAppBar
Example project to show how to handle BottomAppBar
Stars: ✭ 19 (+35.71%)
Mutual labels:  bottombar
BottomNavygation
Bottom Navigation based on Bottom Navigation View from Android
Stars: ✭ 62 (+342.86%)
Mutual labels:  bottombar
Bottomnavbar
Easily add four tabbed bottom navigation bar in your activity.
Stars: ✭ 202 (+1342.86%)
Mutual labels:  bottombar

轻量级的底部导航栏

在原项目PagerBottomTabStrip 基础上 增加了 getItem 方法,能设置对应 position 的 tab 属性

实现效果图

horizontal vertical
Material 1 Material 2
Material 3 Material 4

自定义扩展例子

仿京东重复刷新动画 普通效果
PagerBottomTabStrip PagerBottomTabStrip
Demo中的例子
PagerBottomTabStrip PagerBottomTabStrip

使用

布局文件中配置

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" />

java文件中设置

  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'
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].