Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Droppers authored Mar 5, 2020
1 parent 76083d3 commit cf3ac4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Create a file named `tabs.xml` in the `res/menu/` resources folder:

Get notified when the selected tab changes:
```java
bottom_bar.setOnTabSelectListener(object : AnimatedBottomBar.TabSelectListener {
bottom_bar.setOnTabSelectListener(object : AnimatedBottomBar.OnTabSelectListener {
override fun onTabSelected(
lastIndex: Int,
lastTab: AnimatedBottomBar.Tab?,
Expand Down Expand Up @@ -134,7 +134,7 @@ AnimatedBottomBar.selectTabAt(1)
Could be useful for example restricting access to a premium area.

```kotlin
bottom_bar.setTabInterceptListener(object : AnimatedBottomBar.TabInterceptListener {
bottom_bar.setOnTabInterceptListener(object : AnimatedBottomBar.OnTabInterceptListener {
override fun onTabIntercepted(
lastIndex: Int,
lastTab: AnimatedBottomBar.Tab?,
Expand Down

0 comments on commit cf3ac4f

Please sign in to comment.