# ReadableBottomBar
**Repository Path**: mirrors_iammert/ReadableBottomBar
## Basic Information
- **Project Name**: ReadableBottomBar
- **Description**: Yet another material bottom bar library for Android
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-11
- **Last Updated**: 2026-11-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ReadableBottomBar
Yet another material bottom bar library for Android
## GIF
## Design Credits
All design and inspiration credits goes to [Ranjit](https://www.uplabs.com/posts/readable-tab-bar-concept).
## Usage
* Create your tabs.xml under your res/xml/ folder
```xml
```
* Add bottom bar to your layout
```xml
```
* Add listeners
```kotlin
bottomBar.setOnItemSelectListener { index ->
// show the page for index
}
bottomBar.setOnItemReselectListener { index ->
// the current tab was tapped again, e.g. scroll to top
}
```
* Set index at runtime
```kotlin
bottomBar.selectItem(index)
bottomBar.selectItem(index, animate = false)
```
* Swap the tabs at runtime
```kotlin
bottomBar.setTabs(R.xml.tabs_logged_in)
```
* Show badges
```kotlin
bottomBar.setBadge(index, 3) // shows "3", counts above 99 show "99+"
bottomBar.showBadge(index) // shows a dot
bottomBar.removeBadge(index)
```
* Read the current index
```kotlin
val index = bottomBar.selectedIndex
```
The selected index is saved and restored automatically across configuration changes, as long as the bar has an `android:id`.
Tab `text` can be a string resource (recommended) or a literal string.
* Customize if you need. Colors that are not set follow the theme: the background uses
`android:colorBackground`, the indicator `colorPrimary`, and text and icons `android:textColorPrimary`.
```xml
```
## Setup
Requires `minSdk` 21 and AndroidX.
```gradle
// settings.gradle
dependencyResolutionManagement {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.iammert:ReadableBottomBar:1.1.0'
}
```
License
--------
Copyright 2019 Mert Şimşek
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.