Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
j-roskopf committed Feb 28, 2019
1 parent 4af84c6 commit be81967
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
55 changes: 54 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
# BottomNavBar
# BottomNavBar

A bottom bar with an expanding effect.

* Written in Kotlin with :heart:
* Min SDK 21
* Customizable
* Supports unlimited amount of tabs


![gif](https://github.com/j-roskopf/BottomNavBar/blob/master/github/lib.gif?raw=true)

# Dependencies

build.gradle

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

app/build.gradle

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

# 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) |
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.21'
ext.kotlin_version = '1.3.20'
repositories {
google()
Expand Down

0 comments on commit be81967

Please sign in to comment.