aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Hubert <aurel.hubert@gmail.com>2016-06-08 15:43:29 +0200
committerJoey Rizzoli <joey@cyanogenmoditalia.it>2016-06-09 22:52:29 +0200
commitdb5dd3444071add22989f47e6ca2acc0387e8239 (patch)
tree0b903b14571541d27dc7fb4c56d4df1034c476e6
parent27658ee4d5e11258f3166f55c77d60b303fcdb40 (diff)
downloadandroid_external_ahbottomnavigation-cm-14.0.tar.gz
android_external_ahbottomnavigation-cm-14.0.tar.bz2
android_external_ahbottomnavigation-cm-14.0.zip
-rw-r--r--CHANGELOG.md10
-rw-r--r--README.md15
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`
diff --git a/README.md b/README.md
index c0e59eb..ce57b1a 100644
--- a/README.md
+++ b/README.md
@@ -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;
}
});
```