Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.94 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.94 KB

BottomNavBar

A bottom bar with an expanding effect.

  • Written in Kotlin with ❤️
  • Min SDK 21
  • Customizable
  • Supports unlimited amount of tabs

gif

Dependencies

build.gradle

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

app/build.gradle

dependencies {
    implementation 'com.github.j-roskopf:BottomNavBar:1.02'
}

Code Example

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

Attributes

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