Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelhubert committed Aug 23, 2017
1 parent 0a91358 commit a960f06
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
## Changelog

### Newest version: 2.0.6
### Newest version: 2.1.0

* Update libraries versions
* Add enable/disable tab state (with custom color)
* Add new xml attributes (`colored`, `accentColor`, `inactiveColor`, `disableColor`, `coloredActive`, `coloredInactive`)
* Add param `notificationAnimationDuration`
* Update getDrawable method with `AppCompatResources.getDrawable(context, drawableRes);`
If you use drawable selector and target API < 21, don't forget to add this:
`AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
`

### 2.0.6

* Fix selected item background for API >= 21
* Fix `isHidden()` method
Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ Library to implement the Bottom Navigation component from Material Design guidel
## Demo
<img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo1.gif" width="208" height="368" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo2.gif" width="208" height="368" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo3.gif" width="208" height="368" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo4.gif" width="208" height="368" />

## What's new (2.0.6) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md)
* Fix selected item background for API >= 21
* Fix `isHidden()` method
* Update design support library version
## What's new (2.1.0) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md)
* Update libraries versions
* Add enable/disable tab state (with custom color)
* Add new xml attributes (`colored`, `accentColor`, `inactiveColor`, `disableColor`, `coloredActive`, `coloredInactive`)
* Add param `notificationAnimationDuration`
* Update getDrawable method with `AppCompatResources.getDrawable(context, drawableRes);`
If you use drawable selector and target API < 21, don't forget to add this:
`AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
`

## Features
* Follow the bottom navigation guidelines (https://www.google.com/design/spec/components/bottom-navigation.html)
Expand All @@ -17,13 +21,14 @@ Library to implement the Bottom Navigation component from Material Design guidel
* Add a OnTabSelectedListener to detect tab selection
* Support icon font color with "setForceTint(true)"
* Manage notififcations for each item
* Enable/disable tab state

## How to?

### Gradle
```groovy
dependencies {
compile 'com.aurelhubert:ahbottomnavigation:2.0.6'
compile 'com.aurelhubert:ahbottomnavigation:2.1.0'
}
```
### XML
Expand Down Expand Up @@ -111,6 +116,11 @@ AHNotification notification = new AHNotification.Builder()
.build();
bottomNavigation.setNotification(notification, 1);

// Enable / disable item & set disable color
bottomNavigation.enableItemAtPosition(2);
bottomNavigation.disableItemAtPosition(2);
bottomNavigation.setItemDisableColor(Color.parseColor("#3A000000"));

// Set listeners
bottomNavigation.setOnTabSelectedListener(new AHBottomNavigation.OnTabSelectedListener() {
@Override
Expand Down

0 comments on commit a960f06

Please sign in to comment.