diff options
author | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-06-08 15:43:29 +0200 |
---|---|---|
committer | Joey Rizzoli <joey@cyanogenmoditalia.it> | 2016-06-09 22:52:29 +0200 |
commit | db5dd3444071add22989f47e6ca2acc0387e8239 (patch) | |
tree | 0b903b14571541d27dc7fb4c56d4df1034c476e6 | |
parent | 27658ee4d5e11258f3166f55c77d60b303fcdb40 (diff) | |
download | android_external_ahbottomnavigation-cm-14.0.tar.gz android_external_ahbottomnavigation-cm-14.0.tar.bz2 android_external_ahbottomnavigation-cm-14.0.zip |
Updated Readme & changelogHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ycm-14.1-20170428cm-14.0cm-13.0
-rw-r--r-- | CHANGELOG.md | 10 | ||||
-rw-r--r-- | README.md | 15 |
2 files changed, 18 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0648f4f..608e549 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ ## Changelog -### Newest version: 1.2.3 +### Newest version: 1.3.0 + +* **BREAKING!** Updated listener, now return a boolean => `boolean onTabSelected(int position, boolean wasSelected);` +* Improved notification management for small items +* Added notification elevation +* Managed complex drawable (selector with states) +* Added constructor `public AHBottomNavigationItem(String title, Drawable drawable)` + +### 1.2.3 * Added `setUseElevation(boolean useElevation, float elevation)` * Fixed a bug with `behaviorTranslationEnabled` & `restoreBottomNavigation` @@ -5,11 +5,13 @@ 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 (1.2.3) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md) +## What's new (1.3.0) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md) -* Added `setUseElevation(boolean useElevation, float elevation)` -* Fixed a bug with `behaviorTranslationEnabled` & `restoreBottomNavigation` -* Improved translation behavior when the Scroll View is not long enough. +* **BREAKING!** Updated listener, now return a boolean => `boolean onTabSelected(int position, boolean wasSelected);` +* Improved notification management for small items +* Added notification elevation +* Managed complex drawable (selector with states) +* Added constructor `public AHBottomNavigationItem(String title, Drawable drawable)` ## Features * Follow the bottom navigation guidelines (https://www.google.com/design/spec/components/bottom-navigation.html) @@ -24,7 +26,7 @@ Library to implement the Bottom Navigation component from Material Design guidel ### Gradle ```groovy dependencies { - compile 'com.aurelhubert:ahbottomnavigation:1.2.3' + compile 'com.aurelhubert:ahbottomnavigation:1.3.0' } ``` ### XML @@ -98,8 +100,9 @@ bottomNavigation.setNotification("", 1); // Set listener bottomNavigation.setOnTabSelectedListener(new AHBottomNavigation.OnTabSelectedListener() { @Override - public void onTabSelected(int position, boolean wasSelected) { + public boolean onTabSelected(int position, boolean wasSelected) { // Do something cool here... + return true; } }); ``` |