A bottom bar with an expanding effect.
- Written in Kotlin with ❤️
- Min SDK 21
- Customizable
- Supports unlimited amount of tabs
build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
app/build.gradle
dependencies {
implementation 'com.github.j-roskopf:BottomNavBar:1.01'
}
<joetr.com.bottomnavbar.BottomNavBar android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<joetr.com.bottomnavbar.BottomNavBarIcon android:layout_width="wrap_content"
android:id="@+id/homeContainer"
app:navIcon="@drawable/ic_home_black_24dp"
app:navText="Home"
app:navBackgroundTint="@color/homeColorTint"
app:navForegroundTint="@color/homeText"
android:layout_height="wrap_content"
app:selected="false"/>
</joetr.com.bottomnavbar.BottomNavBar>
Attribute | Explanation |
---|---|
app:navIcon | Icon to display |
app:navText | Text to display |
app:navBackgroundTint | Background color of tab |
app:navForegroundTint | Foreground color of tab (Text color) |
app:selected | Whether or not to start with the tab expanded |