aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Hubert <aurel.hubert@gmail.com>2016-05-12 14:03:14 +0200
committerAurelien Hubert <aurel.hubert@gmail.com>2016-05-12 14:03:14 +0200
commit7da179435d1d0c4496a1a03a2e1b9ca71b6cfce1 (patch)
treee29dda7cd6643ad5046897113764bef339170129
parent156dd474d13f45af609edfc6cbc046380162415b (diff)
downloadandroid_external_ahbottomnavigation-7da179435d1d0c4496a1a03a2e1b9ca71b6cfce1.tar.gz
android_external_ahbottomnavigation-7da179435d1d0c4496a1a03a2e1b9ca71b6cfce1.tar.bz2
android_external_ahbottomnavigation-7da179435d1d0c4496a1a03a2e1b9ca71b6cfce1.zip
Improved Readme & lib version
-rw-r--r--README.md18
-rw-r--r--ahbottomnavigation/build.gradle6
2 files changed, 15 insertions, 9 deletions
diff --git a/README.md b/README.md
index 779392b..3a4cecf 100644
--- a/README.md
+++ b/README.md
@@ -5,10 +5,16 @@ 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.1.8) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md)
+## What's new (1.2.0) - [Changelog](https://github.com/aurelhubert/ahbottomnavigation/blob/master/CHANGELOG.md)
-* Added `hideBottomNavigation(boolean withAnimation)`
-* Added `restoreBottomNavigation(boolean withAnimation)`
+* Updated Notification: now accept String (empty String to remove the notification)
+* Deprecated integer for Notification
+* Removed deprecated methods & interface for `AHBottomNavigationListener`
+* Fixed touch ripples when the bottom navigation is colored
+* Cleaned colors.xml to avoid conflicts
+* Removed constructor AHBottomNavigationItem()
+* Added `setTitleTextSize(float activeSize, float inactiveSize)`
+* Added `setNotificationMarginLeft(int activeMargin, int inactiveMargin)`
## Features
* Follow the bottom navigation guidelines (https://www.google.com/design/spec/components/bottom-navigation.html)
@@ -23,7 +29,7 @@ Library to implement the Bottom Navigation component from Material Design guidel
### Gradle
```groovy
dependencies {
- compile 'com.aurelhubert:ahbottomnavigation:1.1.8'
+ compile 'com.aurelhubert:ahbottomnavigation:1.2.0'
}
```
### XML
@@ -91,8 +97,8 @@ bottomNavigation.setCurrentItem(1);
bottomNavigation.setNotificationBackgroundColor(Color.parseColor("#F63D2B"));
// Add or remove notification for each item
-bottomNavigation.setNotification(4, 1);
-bottomNavigation.setNotification(0, 1);
+bottomNavigation.setNotification("4", 1);
+bottomNavigation.setNotification("", 1);
// Set listener
bottomNavigation.setOnTabSelectedListener(new AHBottomNavigation.OnTabSelectedListener() {
diff --git a/ahbottomnavigation/build.gradle b/ahbottomnavigation/build.gradle
index 5abf149..956c578 100644
--- a/ahbottomnavigation/build.gradle
+++ b/ahbottomnavigation/build.gradle
@@ -13,7 +13,7 @@ ext {
siteUrl = 'https://github.com/aurelhubert/ahbottomnavigation'
gitUrl = 'https://github.com/aurelhubert/ahbottomnavigation.git'
- libraryVersion = '1.1.8'
+ libraryVersion = '1.2.0'
developerId = 'aurelhubert'
developerName = 'Aurelien Hubert'
@@ -31,8 +31,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
- versionCode 25
- versionName "1.1.8"
+ versionCode 26
+ versionName "1.2.0"
}
buildTypes {
release {