Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimsn98 committed Nov 4, 2019
1 parent 0bc77b1 commit 8622360
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A lightweight Android material bottom navigation bar library

[![](https://jitpack.io/v/ibrahimsn98/SmoothBottomBar.svg)](https://jitpack.io/#ibrahimsn98/SmoothBottomBar)
[![API](https://img.shields.io/badge/API-22%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=22)
[![API](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)
[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-SmoothBottomBar-green.svg?style=flat )]( https://android-arsenal.com/details/1/7932 )

## GIF
Expand Down Expand Up @@ -97,7 +97,7 @@ bottomBar.onItemReselected = {
}
dependencies {
implementation 'com.github.ibrahimsn98:SmoothBottomBar:1.4'
implementation 'com.github.ibrahimsn98:SmoothBottomBar:1.5'
}
```

Expand Down
3 changes: 3 additions & 0 deletions lib/src/main/java/me/ibrahimsn/lib/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ object Constants {
const val ICON_ATTRIBUTE = "icon"
const val TITLE_ATTRIBUTE = "title"
const val WHITE_COLOR_HEX = "#FFFFFF"

const val DEFAULT_INDICATOR_COLOR = "#2DFFFFFF"
const val DEFAULT_TINT = "#C8FFFFFF"
}

6 changes: 4 additions & 2 deletions lib/src/main/java/me/ibrahimsn/lib/SmoothBottomBar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import android.view.View
import android.view.animation.DecelerateInterpolator
import androidx.core.content.res.ResourcesCompat
import androidx.core.graphics.drawable.DrawableCompat
import me.ibrahimsn.lib.Constants.DEFAULT_INDICATOR_COLOR
import me.ibrahimsn.lib.Constants.DEFAULT_TINT
import me.ibrahimsn.lib.Constants.WHITE_COLOR_HEX
import kotlin.math.abs

Expand All @@ -23,15 +25,15 @@ class SmoothBottomBar : View {
* Default attribute values
*/
private var barBackgroundColor = Color.parseColor(WHITE_COLOR_HEX)
private var barIndicatorColor = Color.parseColor("#2DFFFFFF")
private var barIndicatorColor = Color.parseColor(DEFAULT_INDICATOR_COLOR)
private var barSideMargins = d2p(10f)

private var itemPadding = d2p(10f)
private var itemAnimDuration = 300L

private var itemIconSize = d2p(18f)
private var itemIconMargin = d2p(4f)
private var itemIconTint = Color.parseColor("#C8FFFFFF")
private var itemIconTint = Color.parseColor(DEFAULT_TINT)
private var itemIconTintActive = Color.parseColor(WHITE_COLOR_HEX)

private var itemTextColor = Color.parseColor(WHITE_COLOR_HEX)
Expand Down

0 comments on commit 8622360

Please sign in to comment.