diff --git a/CHANGELOG.md b/CHANGELOG.md index ea2a1f61..58e76fd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index f202d5c9..e4ecae74 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,14 @@ Library to implement the Bottom Navigation component from Material Design guidel ## Demo -## 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) @@ -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 @@ -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