Skip to content
Browse files

Rename app folder to demo

Improve Readme
  • Loading branch information...
1 parent 4e6ab10 commit d55b5468e0b4c36ac42a605084aa0f58dcffca44 @aurelhubert committed
Showing with 11 additions and 11 deletions.
  1. +7 −7 README.md
  2. +1 −1 ahbottomnavigation/build.gradle
  3. 0 {app → demo}/.gitignore
  4. 0 {app → demo}/build.gradle
  5. 0 {app → demo}/proguard-rules.pro
  6. 0 {app → demo}/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
  7. 0 {app → demo}/src/main/AndroidManifest.xml
  8. +1 −1 {app → demo}/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
  9. 0 {app → demo}/src/main/res/drawable-hdpi/ic_maps_local_attraction.png
  10. 0 {app → demo}/src/main/res/drawable-hdpi/ic_maps_local_bar.png
  11. 0 {app → demo}/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png
  12. 0 {app → demo}/src/main/res/drawable-hdpi/ic_maps_place.png
  13. 0 {app → demo}/src/main/res/drawable-mdpi/ic_maps_local_attraction.png
  14. 0 {app → demo}/src/main/res/drawable-mdpi/ic_maps_local_bar.png
  15. 0 {app → demo}/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png
  16. 0 {app → demo}/src/main/res/drawable-mdpi/ic_maps_place.png
  17. 0 {app → demo}/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png
  18. 0 {app → demo}/src/main/res/drawable-xhdpi/ic_maps_local_bar.png
  19. 0 {app → demo}/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png
  20. 0 {app → demo}/src/main/res/drawable-xhdpi/ic_maps_place.png
  21. 0 {app → demo}/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png
  22. 0 {app → demo}/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png
  23. 0 {app → demo}/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png
  24. 0 {app → demo}/src/main/res/drawable-xxhdpi/ic_maps_place.png
  25. 0 {app → demo}/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png
  26. 0 {app → demo}/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png
  27. 0 {app → demo}/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png
  28. 0 {app → demo}/src/main/res/drawable-xxxhdpi/ic_maps_place.png
  29. +1 −1 {app → demo}/src/main/res/layout/activity_home.xml
  30. 0 {app → demo}/src/main/res/mipmap-hdpi/ic_launcher.png
  31. 0 {app → demo}/src/main/res/mipmap-mdpi/ic_launcher.png
  32. 0 {app → demo}/src/main/res/mipmap-xhdpi/ic_launcher.png
  33. 0 {app → demo}/src/main/res/mipmap-xxhdpi/ic_launcher.png
  34. 0 {app → demo}/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  35. 0 {app → demo}/src/main/res/values-v19/styles.xml
  36. 0 {app → demo}/src/main/res/values-w820dp/dimens.xml
  37. 0 {app → demo}/src/main/res/values/colors.xml
  38. 0 {app → demo}/src/main/res/values/dimens.xml
  39. 0 {app → demo}/src/main/res/values/strings.xml
  40. 0 {app → demo}/src/main/res/values/styles.xml
  41. 0 {app → demo}/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
  42. BIN demo4.gif
  43. BIN demo_4.gif
  44. +1 −1 settings.gradle
View
14 README.md
@@ -2,11 +2,11 @@
A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design (minSdkVersion=16).
# Demo
-<img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo1.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo2.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo3.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo4.gif" width="278" height="492" />
+<img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo1.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo2.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo3.gif" width="278" height="492" /> <img src="https://raw.githubusercontent.com/aurelhubert/ahbottomnavigation/master/demo4.gif" width="492" height="278" />
# Features
-* Follow the bottom navigation bar guidelines (https://www.google.com/design/spec/components/bottom-navigation.html)
+* Follow the bottom navigation guidelines (https://www.google.com/design/spec/components/bottom-navigation.html)
* Add 3 to 5 items (with title, icon & color)
* Choose your style: Classic or colored navigation
* Add a AHBottomNavigationListener to detect tab selection
@@ -22,7 +22,7 @@ buildscript {
}
dependencies {
- compile 'com.aurelhubert:ah-bottom-navigation:0.1'
+ compile 'com.aurelhubert:ahbottomnavigation:0.1.1'
}
```
## XML
@@ -47,12 +47,15 @@ bottomNavigation.addItem(item1);
bottomNavigation.addItem(item2);
bottomNavigation.addItem(item3);
+// Set background color
+bottomNavigation.setDefaultBackgroundColor(Color.parseColor("#FEFEFE"));
+
// Change colors
bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
// Use colored navigation with circle reveal effect
-bottomNavigation.setColored(isChecked);
+bottomNavigation.setColored(true);
// Set listener
bottomNavigation.setAHBottomNavigationListener(new AHBottomNavigation.AHBottomNavigationListener() {
@@ -62,9 +65,6 @@ bottomNavigation.setAHBottomNavigationListener(new AHBottomNavigation.AHBottomNa
}
});
```
-## minSDK version
-
-The current minSDK version is API level 16.
## Contributions
View
2 ahbottomnavigation/build.gradle
@@ -13,7 +13,7 @@ ext {
siteUrl = 'https://github.com/aurelhubert/ahbottomnavigation'
gitUrl = 'https://github.com/aurelhubert/ahbottomnavigation.git'
- libraryVersion = '0.1'
+ libraryVersion = '0.1.1'
developerId = 'aurelhubert'
developerName = 'Aurelien Hubert'
View
0 app/.gitignore → demo/.gitignore
File renamed without changes.
View
0 app/build.gradle → demo/build.gradle
File renamed without changes.
View
0 app/proguard-rules.pro → demo/proguard-rules.pro
File renamed without changes.
View
0 ...m/ahbottomnavigation/ApplicationTest.java → ...m/ahbottomnavigation/ApplicationTest.java
File renamed without changes.
View
0 app/src/main/AndroidManifest.xml → demo/src/main/AndroidManifest.xml
File renamed without changes.
View
2 .../com/ahbottomnavigation/DemoActivity.java → .../com/ahbottomnavigation/DemoActivity.java
@@ -36,7 +36,7 @@ private void initUI() {
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"));
final AHBottomNavigationItem item4 = new AHBottomNavigationItem("Label Four", R.drawable.ic_maps_local_bar, Color.parseColor("#6C4A42"));
- final AHBottomNavigationItem item5 = new AHBottomNavigationItem("Label Five", R.drawable.ic_maps_place, Color.parseColor("#8B6B62"));
+ final AHBottomNavigationItem item5 = new AHBottomNavigationItem("Label Five", R.drawable.ic_maps_place, Color.parseColor("#F63D2B"));
items.add(item1);
items.add(item2);
View
0 ...rawable-hdpi/ic_maps_local_attraction.png → ...rawable-hdpi/ic_maps_local_attraction.png
File renamed without changes
View
0 ...n/res/drawable-hdpi/ic_maps_local_bar.png → ...n/res/drawable-hdpi/ic_maps_local_bar.png
File renamed without changes
View
0 ...rawable-hdpi/ic_maps_local_restaurant.png → ...rawable-hdpi/ic_maps_local_restaurant.png
File renamed without changes
View
0 .../main/res/drawable-hdpi/ic_maps_place.png → .../main/res/drawable-hdpi/ic_maps_place.png
File renamed without changes
View
0 ...rawable-mdpi/ic_maps_local_attraction.png → ...rawable-mdpi/ic_maps_local_attraction.png
File renamed without changes
View
0 ...n/res/drawable-mdpi/ic_maps_local_bar.png → ...n/res/drawable-mdpi/ic_maps_local_bar.png
File renamed without changes
View
0 ...rawable-mdpi/ic_maps_local_restaurant.png → ...rawable-mdpi/ic_maps_local_restaurant.png
File renamed without changes
View
0 .../main/res/drawable-mdpi/ic_maps_place.png → .../main/res/drawable-mdpi/ic_maps_place.png
File renamed without changes
View
0 ...awable-xhdpi/ic_maps_local_attraction.png → ...awable-xhdpi/ic_maps_local_attraction.png
File renamed without changes
View
0 .../res/drawable-xhdpi/ic_maps_local_bar.png → .../res/drawable-xhdpi/ic_maps_local_bar.png
File renamed without changes
View
0 ...awable-xhdpi/ic_maps_local_restaurant.png → ...awable-xhdpi/ic_maps_local_restaurant.png
File renamed without changes
View
0 ...main/res/drawable-xhdpi/ic_maps_place.png → ...main/res/drawable-xhdpi/ic_maps_place.png
File renamed without changes
View
0 ...wable-xxhdpi/ic_maps_local_attraction.png → ...wable-xxhdpi/ic_maps_local_attraction.png
File renamed without changes
View
0 ...res/drawable-xxhdpi/ic_maps_local_bar.png → ...res/drawable-xxhdpi/ic_maps_local_bar.png
File renamed without changes
View
0 ...wable-xxhdpi/ic_maps_local_restaurant.png → ...wable-xxhdpi/ic_maps_local_restaurant.png
File renamed without changes
View
0 ...ain/res/drawable-xxhdpi/ic_maps_place.png → ...ain/res/drawable-xxhdpi/ic_maps_place.png
File renamed without changes
View
0 ...able-xxxhdpi/ic_maps_local_attraction.png → ...able-xxxhdpi/ic_maps_local_attraction.png
File renamed without changes
View
0 ...es/drawable-xxxhdpi/ic_maps_local_bar.png → ...es/drawable-xxxhdpi/ic_maps_local_bar.png
File renamed without changes
View
0 ...able-xxxhdpi/ic_maps_local_restaurant.png → ...able-xxxhdpi/ic_maps_local_restaurant.png
File renamed without changes
View
0 ...in/res/drawable-xxxhdpi/ic_maps_place.png → ...in/res/drawable-xxxhdpi/ic_maps_place.png
File renamed without changes
View
2 app/src/main/res/layout/activity_home.xml → demo/src/main/res/layout/activity_home.xml
@@ -41,7 +41,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:text="5 items ?"
+ android:text="5 items?"
android:textSize="18sp"/>
<android.support.v7.widget.SwitchCompat
View
0 app/src/main/res/mipmap-hdpi/ic_launcher.png → .../src/main/res/mipmap-hdpi/ic_launcher.png
File renamed without changes
View
0 app/src/main/res/mipmap-mdpi/ic_launcher.png → .../src/main/res/mipmap-mdpi/ic_launcher.png
File renamed without changes
View
0 ...src/main/res/mipmap-xhdpi/ic_launcher.png → ...src/main/res/mipmap-xhdpi/ic_launcher.png
File renamed without changes
View
0 ...rc/main/res/mipmap-xxhdpi/ic_launcher.png → ...rc/main/res/mipmap-xxhdpi/ic_launcher.png
File renamed without changes
View
0 ...c/main/res/mipmap-xxxhdpi/ic_launcher.png → ...c/main/res/mipmap-xxxhdpi/ic_launcher.png
File renamed without changes
View
0 app/src/main/res/values-v19/styles.xml → demo/src/main/res/values-v19/styles.xml
File renamed without changes.
View
0 app/src/main/res/values-w820dp/dimens.xml → demo/src/main/res/values-w820dp/dimens.xml
File renamed without changes.
View
0 app/src/main/res/values/colors.xml → demo/src/main/res/values/colors.xml
File renamed without changes.
View
0 app/src/main/res/values/dimens.xml → demo/src/main/res/values/dimens.xml
File renamed without changes.
View
0 app/src/main/res/values/strings.xml → demo/src/main/res/values/strings.xml
File renamed without changes.
View
0 app/src/main/res/values/styles.xml → demo/src/main/res/values/styles.xml
File renamed without changes.
View
0 ...m/ahbottomnavigation/ExampleUnitTest.java → ...m/ahbottomnavigation/ExampleUnitTest.java
File renamed without changes.
View
BIN demo4.gif
Diff not rendered.
View
BIN demo_4.gif
Diff not rendered.
View
2 settings.gradle
@@ -1 +1 @@
-include ':app', ':ahbottomnavigation'
+include ':demo', ':ahbottomnavigation'

0 comments on commit d55b546

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