|
@@ -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