aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Hubert <aurel.hubert@gmail.com>2016-03-22 17:14:53 +0100
committerAurelien Hubert <aurel.hubert@gmail.com>2016-03-22 17:14:53 +0100
commit613ef14499235cf7505be0c9b39abb221ced58e7 (patch)
treed99c481f30b46811b130faaacd30dc396239f9e2
parent9b25dd3f04161d439c8461abfd5c34e924e8b527 (diff)
downloadandroid_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.tar.gz
android_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.tar.bz2
android_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.zip
Improve Readme
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6b4e992..ee33b72 100644
--- a/README.md
+++ b/README.md
@@ -12,13 +12,14 @@ Library to implement the Bottom Navigation component from Material Design guidel
* Add 3 to 5 items (with title, icon & color)
* Choose your style: Classic or colored navigation
* Add a OnTabSelectedListener to detect tab selection
+* Support icon font color with "setForceTint(true)"
## How to?
### Gradle
```groovy
dependencies {
- compile 'com.aurelhubert:ahbottomnavigation:0.1.4'
+ compile 'com.aurelhubert:ahbottomnavigation:0.1.5'
}
```
### XML
@@ -70,6 +71,12 @@ bottomNavigation.setBehaviorTranslationEnabled(false);
bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
+// Force to tint the drawable (useful for font with icon for example)
+bottomNavigation.setForceTint(true);
+
+// Force the titles to be displayed (against Material Design guidelines!)
+bottomNavigation.setForceTitlesDisplay(true);
+
// Use colored navigation with circle reveal effect
bottomNavigation.setColored(true);