Skip to content
Browse files

Improve Readme

  • Loading branch information...
1 parent 13a6bd2 commit b692d68f3449f2cfb4534beccc54c89be5341a80 @aurelhubert committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -18,7 +18,7 @@ Library to implement the Bottom Navigation component from Material Design guidel
### Gradle
```groovy
dependencies {
- compile 'com.aurelhubert:ahbottomnavigation:0.1.3'
+ compile 'com.aurelhubert:ahbottomnavigation:0.1.4'
}
```
### XML
@@ -51,9 +51,9 @@ OR
AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
// Create items
-AHBottomNavigationItem item1 = new AHBottomNavigationItem("Label One", R.drawable.ic_maps_place, Color.parseColor("#455C65"));
-AHBottomNavigationItem item2 = new AHBottomNavigationItem("Label Two", R.drawable.ic_maps_local_bar, Color.parseColor("#00886A"));
-AHBottomNavigationItem item3 = new AHBottomNavigationItem("Label Three", R.drawable.ic_maps_local_restaurant, Color.parseColor("#8B6B62"));
+AHBottomNavigationItem item1 = new AHBottomNavigationItem(R.string.tab_1, R.drawable.ic_maps_place, R.color.color_tab_1);
+AHBottomNavigationItem item2 = new AHBottomNavigationItem(R.string.tab_2, R.drawable.ic_maps_local_bar, R.color.color_tab_2);
+AHBottomNavigationItem item3 = new AHBottomNavigationItem(R.string.tab_3, R.drawable.ic_maps_local_restaurant, R.color.color_tab_3);
// Add items
bottomNavigation.addItem(item1);

0 comments on commit b692d68

Please sign in to comment.
Something went wrong with that request. Please try again.