https://github.com/shubham16g/super-bottom-navigation
This is Best Bottom Navigation for Android
https://github.com/shubham16g/super-bottom-navigation
andriod bottom-navigation bottomnavigationview chip-navigation custom library
Last synced: 8 months ago
JSON representation
This is Best Bottom Navigation for Android
- Host: GitHub
- URL: https://github.com/shubham16g/super-bottom-navigation
- Owner: shubham16g
- Created: 2021-02-28T19:48:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-29T17:24:45.000Z (over 4 years ago)
- Last Synced: 2024-12-28T17:15:23.238Z (9 months ago)
- Topics: andriod, bottom-navigation, bottomnavigationview, chip-navigation, custom, library
- Language: Java
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Super-Bottom-Navigation
[](https://jitpack.io/#shubham-gupta-16/Super-Bottom-Navigation)
This is the best Bottom Navigation for Android.
## Gradle
### Add jitpack to the build.gradle (project):
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```### Add the library to the dependencies:
```
implementation 'com.github.shubham-gupta-16:Super-Bottom-Navigation:1.0.6'
```
## Docs### In XML layout file:
```xml
```
### In Java Activity file:
```java
superBottomNav = findViewById(R.id.superBottomNav);superBottomNav.setOnItemSelectChangeListener(new SuperBottomNavigation.OnItemSelectChangeListener() {
@Override
public void onChange(int id, int position) {
Log.d(TAG, "id: " + id + ", position: " + position);
}
});
```
### Also add Badges by using:
```java
superBottomNav.setBadge(R.id.action_cart, cartCount);
```