diff options
author | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-03-22 17:14:53 +0100 |
---|---|---|
committer | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-03-22 17:14:53 +0100 |
commit | 613ef14499235cf7505be0c9b39abb221ced58e7 (patch) | |
tree | d99c481f30b46811b130faaacd30dc396239f9e2 | |
parent | 9b25dd3f04161d439c8461abfd5c34e924e8b527 (diff) | |
download | android_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.tar.gz android_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.tar.bz2 android_external_ahbottomnavigation-613ef14499235cf7505be0c9b39abb221ced58e7.zip |
Improve Readme
-rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |