From d55b5468e0b4c36ac42a605084aa0f58dcffca44 Mon Sep 17 00:00:00 2001
From: Aurelien Hubert <aurel.hubert@gmail.com>
Date: Thu, 17 Mar 2016 15:46:23 +0100
Subject: [PATCH] Rename app folder to demo Improve Readme

---
 README.md                                          |  14 ++--
 ahbottomnavigation/build.gradle                    |   2 +-
 app/.gitignore                                     |   1 -
 app/build.gradle                                   |  27 -------
 app/proguard-rules.pro                             |  17 -----
 .../com/ahbottomnavigation/ApplicationTest.java    |  13 ----
 app/src/main/AndroidManifest.xml                   |  22 ------
 .../com/ahbottomnavigation/DemoActivity.java       |  78 ---------------------
 .../res/drawable-hdpi/ic_maps_local_attraction.png | Bin 625 -> 0 bytes
 .../main/res/drawable-hdpi/ic_maps_local_bar.png   | Bin 391 -> 0 bytes
 .../res/drawable-hdpi/ic_maps_local_restaurant.png | Bin 702 -> 0 bytes
 app/src/main/res/drawable-hdpi/ic_maps_place.png   | Bin 724 -> 0 bytes
 .../res/drawable-mdpi/ic_maps_local_attraction.png | Bin 426 -> 0 bytes
 .../main/res/drawable-mdpi/ic_maps_local_bar.png   | Bin 233 -> 0 bytes
 .../res/drawable-mdpi/ic_maps_local_restaurant.png | Bin 506 -> 0 bytes
 app/src/main/res/drawable-mdpi/ic_maps_place.png   | Bin 452 -> 0 bytes
 .../drawable-xhdpi/ic_maps_local_attraction.png    | Bin 831 -> 0 bytes
 .../main/res/drawable-xhdpi/ic_maps_local_bar.png  | Bin 327 -> 0 bytes
 .../drawable-xhdpi/ic_maps_local_restaurant.png    | Bin 870 -> 0 bytes
 app/src/main/res/drawable-xhdpi/ic_maps_place.png  | Bin 885 -> 0 bytes
 .../drawable-xxhdpi/ic_maps_local_attraction.png   | Bin 1311 -> 0 bytes
 .../main/res/drawable-xxhdpi/ic_maps_local_bar.png | Bin 500 -> 0 bytes
 .../drawable-xxhdpi/ic_maps_local_restaurant.png   | Bin 1277 -> 0 bytes
 app/src/main/res/drawable-xxhdpi/ic_maps_place.png | Bin 1454 -> 0 bytes
 .../drawable-xxxhdpi/ic_maps_local_attraction.png  | Bin 1869 -> 0 bytes
 .../res/drawable-xxxhdpi/ic_maps_local_bar.png     | Bin 767 -> 0 bytes
 .../drawable-xxxhdpi/ic_maps_local_restaurant.png  | Bin 1910 -> 0 bytes
 .../main/res/drawable-xxxhdpi/ic_maps_place.png    | Bin 2027 -> 0 bytes
 app/src/main/res/layout/activity_home.xml          |  69 ------------------
 app/src/main/res/mipmap-hdpi/ic_launcher.png       | Bin 3418 -> 0 bytes
 app/src/main/res/mipmap-mdpi/ic_launcher.png       | Bin 2206 -> 0 bytes
 app/src/main/res/mipmap-xhdpi/ic_launcher.png      | Bin 4842 -> 0 bytes
 app/src/main/res/mipmap-xxhdpi/ic_launcher.png     | Bin 7718 -> 0 bytes
 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png    | Bin 10486 -> 0 bytes
 app/src/main/res/values-v19/styles.xml             |  11 ---
 app/src/main/res/values-w820dp/dimens.xml          |   6 --
 app/src/main/res/values/colors.xml                 |   9 ---
 app/src/main/res/values/dimens.xml                 |  31 --------
 app/src/main/res/values/strings.xml                |   3 -
 app/src/main/res/values/styles.xml                 |  11 ---
 .../com/ahbottomnavigation/ExampleUnitTest.java    |  15 ----
 demo/.gitignore                                    |   1 +
 demo/build.gradle                                  |  27 +++++++
 demo/proguard-rules.pro                            |  17 +++++
 .../com/ahbottomnavigation/ApplicationTest.java    |  13 ++++
 demo/src/main/AndroidManifest.xml                  |  22 ++++++
 .../com/ahbottomnavigation/DemoActivity.java       |  78 +++++++++++++++++++++
 .../res/drawable-hdpi/ic_maps_local_attraction.png | Bin 0 -> 625 bytes
 .../main/res/drawable-hdpi/ic_maps_local_bar.png   | Bin 0 -> 391 bytes
 .../res/drawable-hdpi/ic_maps_local_restaurant.png | Bin 0 -> 702 bytes
 demo/src/main/res/drawable-hdpi/ic_maps_place.png  | Bin 0 -> 724 bytes
 .../res/drawable-mdpi/ic_maps_local_attraction.png | Bin 0 -> 426 bytes
 .../main/res/drawable-mdpi/ic_maps_local_bar.png   | Bin 0 -> 233 bytes
 .../res/drawable-mdpi/ic_maps_local_restaurant.png | Bin 0 -> 506 bytes
 demo/src/main/res/drawable-mdpi/ic_maps_place.png  | Bin 0 -> 452 bytes
 .../drawable-xhdpi/ic_maps_local_attraction.png    | Bin 0 -> 831 bytes
 .../main/res/drawable-xhdpi/ic_maps_local_bar.png  | Bin 0 -> 327 bytes
 .../drawable-xhdpi/ic_maps_local_restaurant.png    | Bin 0 -> 870 bytes
 demo/src/main/res/drawable-xhdpi/ic_maps_place.png | Bin 0 -> 885 bytes
 .../drawable-xxhdpi/ic_maps_local_attraction.png   | Bin 0 -> 1311 bytes
 .../main/res/drawable-xxhdpi/ic_maps_local_bar.png | Bin 0 -> 500 bytes
 .../drawable-xxhdpi/ic_maps_local_restaurant.png   | Bin 0 -> 1277 bytes
 .../src/main/res/drawable-xxhdpi/ic_maps_place.png | Bin 0 -> 1454 bytes
 .../drawable-xxxhdpi/ic_maps_local_attraction.png  | Bin 0 -> 1869 bytes
 .../res/drawable-xxxhdpi/ic_maps_local_bar.png     | Bin 0 -> 767 bytes
 .../drawable-xxxhdpi/ic_maps_local_restaurant.png  | Bin 0 -> 1910 bytes
 .../main/res/drawable-xxxhdpi/ic_maps_place.png    | Bin 0 -> 2027 bytes
 demo/src/main/res/layout/activity_home.xml         |  69 ++++++++++++++++++
 demo/src/main/res/mipmap-hdpi/ic_launcher.png      | Bin 0 -> 3418 bytes
 demo/src/main/res/mipmap-mdpi/ic_launcher.png      | Bin 0 -> 2206 bytes
 demo/src/main/res/mipmap-xhdpi/ic_launcher.png     | Bin 0 -> 4842 bytes
 demo/src/main/res/mipmap-xxhdpi/ic_launcher.png    | Bin 0 -> 7718 bytes
 demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png   | Bin 0 -> 10486 bytes
 demo/src/main/res/values-v19/styles.xml            |  11 +++
 demo/src/main/res/values-w820dp/dimens.xml         |   6 ++
 demo/src/main/res/values/colors.xml                |   9 +++
 demo/src/main/res/values/dimens.xml                |  31 ++++++++
 demo/src/main/res/values/strings.xml               |   3 +
 demo/src/main/res/values/styles.xml                |  11 +++
 .../com/ahbottomnavigation/ExampleUnitTest.java    |  15 ++++
 demo4.gif                                          | Bin 209925 -> 0 bytes
 demo_4.gif                                         | Bin 0 -> 398580 bytes
 settings.gradle                                    |   2 +-
 83 files changed, 322 insertions(+), 322 deletions(-)
 delete mode 100644 app/.gitignore
 delete mode 100644 app/build.gradle
 delete mode 100644 app/proguard-rules.pro
 delete mode 100644 app/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
 delete mode 100644 app/src/main/AndroidManifest.xml
 delete mode 100644 app/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
 delete mode 100755 app/src/main/res/drawable-hdpi/ic_maps_local_attraction.png
 delete mode 100755 app/src/main/res/drawable-hdpi/ic_maps_local_bar.png
 delete mode 100755 app/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png
 delete mode 100755 app/src/main/res/drawable-hdpi/ic_maps_place.png
 delete mode 100755 app/src/main/res/drawable-mdpi/ic_maps_local_attraction.png
 delete mode 100755 app/src/main/res/drawable-mdpi/ic_maps_local_bar.png
 delete mode 100755 app/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png
 delete mode 100755 app/src/main/res/drawable-mdpi/ic_maps_place.png
 delete mode 100755 app/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png
 delete mode 100755 app/src/main/res/drawable-xhdpi/ic_maps_local_bar.png
 delete mode 100755 app/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png
 delete mode 100755 app/src/main/res/drawable-xhdpi/ic_maps_place.png
 delete mode 100755 app/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png
 delete mode 100755 app/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png
 delete mode 100755 app/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png
 delete mode 100755 app/src/main/res/drawable-xxhdpi/ic_maps_place.png
 delete mode 100755 app/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png
 delete mode 100755 app/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png
 delete mode 100755 app/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png
 delete mode 100755 app/src/main/res/drawable-xxxhdpi/ic_maps_place.png
 delete mode 100644 app/src/main/res/layout/activity_home.xml
 delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png
 delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png
 delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png
 delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png
 delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
 delete mode 100644 app/src/main/res/values-v19/styles.xml
 delete mode 100644 app/src/main/res/values-w820dp/dimens.xml
 delete mode 100644 app/src/main/res/values/colors.xml
 delete mode 100644 app/src/main/res/values/dimens.xml
 delete mode 100644 app/src/main/res/values/strings.xml
 delete mode 100644 app/src/main/res/values/styles.xml
 delete mode 100644 app/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
 create mode 100644 demo/.gitignore
 create mode 100644 demo/build.gradle
 create mode 100644 demo/proguard-rules.pro
 create mode 100644 demo/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
 create mode 100644 demo/src/main/AndroidManifest.xml
 create mode 100644 demo/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
 create mode 100755 demo/src/main/res/drawable-hdpi/ic_maps_local_attraction.png
 create mode 100755 demo/src/main/res/drawable-hdpi/ic_maps_local_bar.png
 create mode 100755 demo/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png
 create mode 100755 demo/src/main/res/drawable-hdpi/ic_maps_place.png
 create mode 100755 demo/src/main/res/drawable-mdpi/ic_maps_local_attraction.png
 create mode 100755 demo/src/main/res/drawable-mdpi/ic_maps_local_bar.png
 create mode 100755 demo/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png
 create mode 100755 demo/src/main/res/drawable-mdpi/ic_maps_place.png
 create mode 100755 demo/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png
 create mode 100755 demo/src/main/res/drawable-xhdpi/ic_maps_local_bar.png
 create mode 100755 demo/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png
 create mode 100755 demo/src/main/res/drawable-xhdpi/ic_maps_place.png
 create mode 100755 demo/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png
 create mode 100755 demo/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png
 create mode 100755 demo/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png
 create mode 100755 demo/src/main/res/drawable-xxhdpi/ic_maps_place.png
 create mode 100755 demo/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png
 create mode 100755 demo/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png
 create mode 100755 demo/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png
 create mode 100755 demo/src/main/res/drawable-xxxhdpi/ic_maps_place.png
 create mode 100644 demo/src/main/res/layout/activity_home.xml
 create mode 100644 demo/src/main/res/mipmap-hdpi/ic_launcher.png
 create mode 100644 demo/src/main/res/mipmap-mdpi/ic_launcher.png
 create mode 100644 demo/src/main/res/mipmap-xhdpi/ic_launcher.png
 create mode 100644 demo/src/main/res/mipmap-xxhdpi/ic_launcher.png
 create mode 100644 demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png
 create mode 100644 demo/src/main/res/values-v19/styles.xml
 create mode 100644 demo/src/main/res/values-w820dp/dimens.xml
 create mode 100644 demo/src/main/res/values/colors.xml
 create mode 100644 demo/src/main/res/values/dimens.xml
 create mode 100644 demo/src/main/res/values/strings.xml
 create mode 100644 demo/src/main/res/values/styles.xml
 create mode 100644 demo/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
 delete mode 100644 demo4.gif
 create mode 100644 demo_4.gif

diff --git a/README.md b/README.md
index 4a717ef..8f340ed 100644
--- a/README.md
+++ b/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
 
diff --git a/ahbottomnavigation/build.gradle b/ahbottomnavigation/build.gradle
index 00a89b6..7ae1833 100644
--- a/ahbottomnavigation/build.gradle
+++ b/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'
diff --git a/app/.gitignore b/app/.gitignore
deleted file mode 100644
index 796b96d..0000000
--- a/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/app/build.gradle b/app/build.gradle
deleted file mode 100644
index 01b89eb..0000000
--- a/app/build.gradle
+++ /dev/null
@@ -1,27 +0,0 @@
-apply plugin: 'com.android.application'
-
-android {
-    compileSdkVersion 23
-    buildToolsVersion "23.0.2"
-
-    defaultConfig {
-        applicationId "aurelhubert.com.ahbottomnavigation"
-        minSdkVersion 16
-        targetSdkVersion 23
-        versionCode 1
-        versionName "1.0"
-    }
-    buildTypes {
-        release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
-        }
-    }
-}
-
-dependencies {
-    compile fileTree(dir: 'libs', include: ['*.jar'])
-    testCompile 'junit:junit:4.12'
-    compile 'com.android.support:appcompat-v7:23.2.1'
-    compile project(':ahbottomnavigation')
-}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
deleted file mode 100644
index 7e00a0c..0000000
--- a/app/proguard-rules.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/aurelien/Library/Android/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-#   http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-#   public *;
-#}
diff --git a/app/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java b/app/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
deleted file mode 100644
index 08c4e26..0000000
--- a/app/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package aurelhubert.com.ahbottomnavigation;
-
-import android.app.Application;
-import android.test.ApplicationTestCase;
-
-/**
- * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
- */
-public class ApplicationTest extends ApplicationTestCase<Application> {
-	public ApplicationTest() {
-		super(Application.class);
-	}
-}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 03c1cce..0000000
--- a/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest package="aurelhubert.com.ahbottomnavigation"
-          xmlns:android="http://schemas.android.com/apk/res/android">
-
-    <uses-permission android:name="android.permission.INTERNET" />
-
-    <application
-        android:allowBackup="true"
-        android:icon="@mipmap/ic_launcher"
-        android:label="@string/app_name"
-        android:supportsRtl="true"
-        android:theme="@style/AppTheme">
-        <activity android:name=".DemoActivity">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN"/>
-
-                <category android:name="android.intent.category.LAUNCHER"/>
-            </intent-filter>
-        </activity>
-    </application>
-
-</manifest>
diff --git a/app/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java b/app/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
deleted file mode 100644
index ea86117..0000000
--- a/app/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package aurelhubert.com.ahbottomnavigation;
-
-import android.graphics.Color;
-import android.os.Bundle;
-import android.support.v7.app.AppCompatActivity;
-import android.support.v7.widget.SwitchCompat;
-import android.widget.CompoundButton;
-import android.widget.TextView;
-
-import com.aurelhubert.ahbottomnavigation.AHBottomNavigation;
-import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem;
-
-import java.util.ArrayList;
-
-public class DemoActivity extends AppCompatActivity {
-
-	@Override
-	protected void onCreate(Bundle savedInstanceState) {
-		super.onCreate(savedInstanceState);
-		setContentView(R.layout.activity_home);
-		initUI();
-	}
-
-	/**
-	 * Init UI
-	 */
-	private void initUI() {
-
-		final SwitchCompat switchColored = (SwitchCompat) findViewById(R.id.home_switch_colored);
-		final SwitchCompat switchFourItems = (SwitchCompat) findViewById(R.id.home_switch_four_items);
-		final AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
-		final TextView currentItem = (TextView) findViewById(R.id.home_current_item);
-		final ArrayList<AHBottomNavigationItem> items = new ArrayList<>();
-
-		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"));
-		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"));
-
-		items.add(item1);
-		items.add(item2);
-		items.add(item3);
-
-		bottomNavigation.addItems(items);
-		bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
-		bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
-		bottomNavigation.setAHBottomNavigationListener(new AHBottomNavigation.AHBottomNavigationListener() {
-			@Override
-			public void onTabSelected(int position) {
-				//Toast.makeText(DemoActivity.this, "Select: " + position, Toast.LENGTH_SHORT).show();
-				currentItem.setText("Current item: " + position);
-			}
-		});
-
-		switchColored.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
-			@Override
-			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
-				bottomNavigation.setColored(isChecked);
-			}
-		});
-
-		switchFourItems.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
-			@Override
-			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
-				if (isChecked) {
-					bottomNavigation.addItem(item4);
-					bottomNavigation.addItem(item5);
-				} else {
-					bottomNavigation.removeAllItems();
-					bottomNavigation.addItems(items);
-				}
-			}
-		});
-
-	}
-
-}
diff --git a/app/src/main/res/drawable-hdpi/ic_maps_local_attraction.png b/app/src/main/res/drawable-hdpi/ic_maps_local_attraction.png
deleted file mode 100755
index 03364863f0df59076beadc9ef072fd359fa801c5..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-hdpi/ic_maps_local_bar.png b/app/src/main/res/drawable-hdpi/ic_maps_local_bar.png
deleted file mode 100755
index b11dca3f722403a0fb6b6c8efe6d98cad621bbd6..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png b/app/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png
deleted file mode 100755
index 5196205e1fafa9065b50345bed5149d5e1f05fab..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-hdpi/ic_maps_place.png b/app/src/main/res/drawable-hdpi/ic_maps_place.png
deleted file mode 100755
index 3283881226c5e5837ba35197de1a7bcaab603994..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-mdpi/ic_maps_local_attraction.png b/app/src/main/res/drawable-mdpi/ic_maps_local_attraction.png
deleted file mode 100755
index 08782e882191b7906caa8a01d5b41849fea32fc0..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-mdpi/ic_maps_local_bar.png b/app/src/main/res/drawable-mdpi/ic_maps_local_bar.png
deleted file mode 100755
index deff587d0c835d83e3157ebc476ec90c0437a0dd..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png b/app/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png
deleted file mode 100755
index 8e661bad0494a686fabc6543f4a60b83884ce774..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-mdpi/ic_maps_place.png b/app/src/main/res/drawable-mdpi/ic_maps_place.png
deleted file mode 100755
index 4889870c44791762edc95bd7f0cdd1c5fe4df537..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png b/app/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png
deleted file mode 100755
index 39cc1d1ae9d6541c3e42cda78dbabdab28446a70..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xhdpi/ic_maps_local_bar.png b/app/src/main/res/drawable-xhdpi/ic_maps_local_bar.png
deleted file mode 100755
index 36b9798b60af1f55a4ffdadf225718ad87d374bd..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png b/app/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png
deleted file mode 100755
index 7bcba3d4b076252582003f54b80fda49489b331e..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xhdpi/ic_maps_place.png b/app/src/main/res/drawable-xhdpi/ic_maps_place.png
deleted file mode 100755
index 22b7921b52a252ec8e6fbf94fa25b372aefa81fc..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png b/app/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png
deleted file mode 100755
index ee65afd53066f32d016b641ba0361e34844f6e01..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png b/app/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png
deleted file mode 100755
index 53e5cdea692c9e670fef14e844be2aa02b4a2031..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png b/app/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png
deleted file mode 100755
index b0dec2b2665cf474dc4435502b2328d0dcadc6f9..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxhdpi/ic_maps_place.png b/app/src/main/res/drawable-xxhdpi/ic_maps_place.png
deleted file mode 100755
index 660ccf526046bbdf79e3e8dc6fad532d0da2eab2..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png b/app/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png
deleted file mode 100755
index 81abdb8ea32a56ef7cf549a2a9e54850cad56f49..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png b/app/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png
deleted file mode 100755
index b70e547a7ef2847743a83a85e80c1c9c60734a27..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png b/app/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png
deleted file mode 100755
index 2b22088be03a26f06be81aa20553e4f15929cd16..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_maps_place.png b/app/src/main/res/drawable-xxxhdpi/ic_maps_place.png
deleted file mode 100755
index 5684325fc19fc2901fe8a998696589722da4227a..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/layout/activity_home.xml b/app/src/main/res/layout/activity_home.xml
deleted file mode 100644
index 2ecf31d..0000000
--- a/app/src/main/res/layout/activity_home.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:orientation="vertical">
-
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="0dp"
-        android:layout_weight="1"
-        android:padding="24dp"
-        android:orientation="vertical">
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="horizontal">
-
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:text="Colored"
-                android:textSize="18sp"/>
-
-            <android.support.v7.widget.SwitchCompat
-                android:id="@+id/home_switch_colored"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"/>
-
-        </LinearLayout>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="24dp"
-            android:orientation="horizontal">
-
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:text="5 items ?"
-                android:textSize="18sp"/>
-
-            <android.support.v7.widget.SwitchCompat
-                android:id="@+id/home_switch_four_items"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"/>
-
-        </LinearLayout>
-
-        <TextView
-            android:id="@+id/home_current_item"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="24dp"
-            android:text="Current item: 0"
-            android:textSize="18sp"/>
-
-    </LinearLayout>
-
-    <com.aurelhubert.ahbottomnavigation.AHBottomNavigation
-        android:id="@+id/bottom_navigation"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"/>
-
-</LinearLayout>
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index cde69bcccec65160d92116f20ffce4fce0b5245c..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index c133a0cbd379f5af6dbf1a899a0293ca5eccfad0..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index bfa42f0e7b91d006d22352c9ff2f134e504e3c1d..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 324e72cdd7480cb983fa1bcc7ce686e51ef87fe7..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index aee44e138434630332d88b1680f33c4b24c70ab3..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/app/src/main/res/values-v19/styles.xml b/app/src/main/res/values-v19/styles.xml
deleted file mode 100644
index 5885930..0000000
--- a/app/src/main/res/values-v19/styles.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<resources>
-
-    <!-- Base application theme. -->
-    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
-        <!-- Customize your theme here. -->
-        <item name="colorPrimary">@color/colorPrimary</item>
-        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-        <item name="colorAccent">@color/colorAccent</item>
-    </style>
-
-</resources>
diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml
deleted file mode 100644
index 63fc816..0000000
--- a/app/src/main/res/values-w820dp/dimens.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<resources>
-    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
-         (such as screen margins) for screens with more than 820dp of available width. This
-         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
-    <dimen name="activity_horizontal_margin">64dp</dimen>
-</resources>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
deleted file mode 100644
index 3e192d7..0000000
--- a/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="colorPrimary">#3F51B5</color>
-    <color name="colorPrimaryDark">#303F9F</color>
-    <color name="colorAccent">#FF4081</color>
-    <color name="colorInactive">#747474</color>
-    <color name="colorActiveSmall">#FFFFFF</color>
-    <color name="colorInactiveSmall">#50FFFFFF</color>
-</resources>
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
deleted file mode 100644
index 39ab798..0000000
--- a/app/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<resources>
-
-    <dimen name="bottom_navigation_elevation">8dp</dimen>
-
-    <dimen name="bottom_navigation_min_width">104dp</dimen>
-    <dimen name="bottom_navigation_max_width">168dp</dimen>
-    <dimen name="bottom_navigation_height">56dp</dimen>
-    <dimen name="bottom_navigation_icon">24dp</dimen>
-
-    <dimen name="bottom_navigation_padding_top_active">6dp</dimen>
-    <dimen name="bottom_navigation_padding_top_inactive">8dp</dimen>
-    <dimen name="bottom_navigation_padding_bottom">7dp</dimen>
-    <dimen name="bottom_navigation_padding_left">12dp</dimen>
-    <dimen name="bottom_navigation_padding_right">12dp</dimen>
-
-    <dimen name="bottom_navigation_text_size_active">14sp</dimen>
-    <dimen name="bottom_navigation_text_size_inactive">12sp</dimen>
-
-    <!-- Small -->
-    <dimen name="bottom_navigation_small_active_min_width">96dp</dimen>
-    <dimen name="bottom_navigation_small_active_max_width">168dp</dimen>
-    <dimen name="bottom_navigation_small_inactive_min_width">64dp</dimen>
-    <dimen name="bottom_navigation_small_inactive_max_width">96dp</dimen>
-
-    <dimen name="bottom_navigation_small_padding_top_active">6dp</dimen>
-    <dimen name="bottom_navigation_small_padding_top">16dp</dimen>
-    <dimen name="bottom_navigation_small_padding_bottom">16dp</dimen>
-
-    <dimen name="bottom_navigation_small_selected_width_difference">10dp</dimen>
-
-</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
deleted file mode 100644
index 9b58275..0000000
--- a/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<resources>
-    <string name="app_name">AHBottomNavigation</string>
-</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
deleted file mode 100644
index 0eb88fe..0000000
--- a/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<resources>
-
-    <!-- Base application theme. -->
-    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
-        <!-- Customize your theme here. -->
-        <item name="colorPrimary">@color/colorPrimary</item>
-        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-        <item name="colorAccent">@color/colorAccent</item>
-    </style>
-
-</resources>
diff --git a/app/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java b/app/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
deleted file mode 100644
index 2094705..0000000
--- a/app/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package aurelhubert.com.ahbottomnavigation;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * To work on unit tests, switch the Test Artifact in the Build Variants view.
- */
-public class ExampleUnitTest {
-	@Test
-	public void addition_isCorrect() throws Exception {
-		assertEquals(4, 2 + 2);
-	}
-}
\ No newline at end of file
diff --git a/demo/.gitignore b/demo/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/demo/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/demo/build.gradle b/demo/build.gradle
new file mode 100644
index 0000000..01b89eb
--- /dev/null
+++ b/demo/build.gradle
@@ -0,0 +1,27 @@
+apply plugin: 'com.android.application'
+
+android {
+    compileSdkVersion 23
+    buildToolsVersion "23.0.2"
+
+    defaultConfig {
+        applicationId "aurelhubert.com.ahbottomnavigation"
+        minSdkVersion 16
+        targetSdkVersion 23
+        versionCode 1
+        versionName "1.0"
+    }
+    buildTypes {
+        release {
+            minifyEnabled false
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+        }
+    }
+}
+
+dependencies {
+    compile fileTree(dir: 'libs', include: ['*.jar'])
+    testCompile 'junit:junit:4.12'
+    compile 'com.android.support:appcompat-v7:23.2.1'
+    compile project(':ahbottomnavigation')
+}
diff --git a/demo/proguard-rules.pro b/demo/proguard-rules.pro
new file mode 100644
index 0000000..7e00a0c
--- /dev/null
+++ b/demo/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/aurelien/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
diff --git a/demo/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java b/demo/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
new file mode 100644
index 0000000..08c4e26
--- /dev/null
+++ b/demo/src/androidTest/java/aurelhubert/com/ahbottomnavigation/ApplicationTest.java
@@ -0,0 +1,13 @@
+package aurelhubert.com.ahbottomnavigation;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
+ */
+public class ApplicationTest extends ApplicationTestCase<Application> {
+	public ApplicationTest() {
+		super(Application.class);
+	}
+}
\ No newline at end of file
diff --git a/demo/src/main/AndroidManifest.xml b/demo/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..03c1cce
--- /dev/null
+++ b/demo/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest package="aurelhubert.com.ahbottomnavigation"
+          xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <uses-permission android:name="android.permission.INTERNET" />
+
+    <application
+        android:allowBackup="true"
+        android:icon="@mipmap/ic_launcher"
+        android:label="@string/app_name"
+        android:supportsRtl="true"
+        android:theme="@style/AppTheme">
+        <activity android:name=".DemoActivity">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN"/>
+
+                <category android:name="android.intent.category.LAUNCHER"/>
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest>
diff --git a/demo/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java b/demo/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
new file mode 100644
index 0000000..71d86d9
--- /dev/null
+++ b/demo/src/main/java/aurelhubert/com/ahbottomnavigation/DemoActivity.java
@@ -0,0 +1,78 @@
+package aurelhubert.com.ahbottomnavigation;
+
+import android.graphics.Color;
+import android.os.Bundle;
+import android.support.v7.app.AppCompatActivity;
+import android.support.v7.widget.SwitchCompat;
+import android.widget.CompoundButton;
+import android.widget.TextView;
+
+import com.aurelhubert.ahbottomnavigation.AHBottomNavigation;
+import com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem;
+
+import java.util.ArrayList;
+
+public class DemoActivity extends AppCompatActivity {
+
+	@Override
+	protected void onCreate(Bundle savedInstanceState) {
+		super.onCreate(savedInstanceState);
+		setContentView(R.layout.activity_home);
+		initUI();
+	}
+
+	/**
+	 * Init UI
+	 */
+	private void initUI() {
+
+		final SwitchCompat switchColored = (SwitchCompat) findViewById(R.id.home_switch_colored);
+		final SwitchCompat switchFourItems = (SwitchCompat) findViewById(R.id.home_switch_four_items);
+		final AHBottomNavigation bottomNavigation = (AHBottomNavigation) findViewById(R.id.bottom_navigation);
+		final TextView currentItem = (TextView) findViewById(R.id.home_current_item);
+		final ArrayList<AHBottomNavigationItem> items = new ArrayList<>();
+
+		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"));
+		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("#F63D2B"));
+
+		items.add(item1);
+		items.add(item2);
+		items.add(item3);
+
+		bottomNavigation.addItems(items);
+		bottomNavigation.setAccentColor(Color.parseColor("#F63D2B"));
+		bottomNavigation.setInactiveColor(Color.parseColor("#747474"));
+		bottomNavigation.setAHBottomNavigationListener(new AHBottomNavigation.AHBottomNavigationListener() {
+			@Override
+			public void onTabSelected(int position) {
+				//Toast.makeText(DemoActivity.this, "Select: " + position, Toast.LENGTH_SHORT).show();
+				currentItem.setText("Current item: " + position);
+			}
+		});
+
+		switchColored.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+			@Override
+			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
+				bottomNavigation.setColored(isChecked);
+			}
+		});
+
+		switchFourItems.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
+			@Override
+			public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
+				if (isChecked) {
+					bottomNavigation.addItem(item4);
+					bottomNavigation.addItem(item5);
+				} else {
+					bottomNavigation.removeAllItems();
+					bottomNavigation.addItems(items);
+				}
+			}
+		});
+
+	}
+
+}
diff --git a/demo/src/main/res/drawable-hdpi/ic_maps_local_attraction.png b/demo/src/main/res/drawable-hdpi/ic_maps_local_attraction.png
new file mode 100755
index 0000000000000000000000000000000000000000..03364863f0df59076beadc9ef072fd359fa801c5
GIT binary patch
diff --git a/demo/src/main/res/drawable-hdpi/ic_maps_local_bar.png b/demo/src/main/res/drawable-hdpi/ic_maps_local_bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..b11dca3f722403a0fb6b6c8efe6d98cad621bbd6
GIT binary patch
diff --git a/demo/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png b/demo/src/main/res/drawable-hdpi/ic_maps_local_restaurant.png
new file mode 100755
index 0000000000000000000000000000000000000000..5196205e1fafa9065b50345bed5149d5e1f05fab
GIT binary patch
diff --git a/demo/src/main/res/drawable-hdpi/ic_maps_place.png b/demo/src/main/res/drawable-hdpi/ic_maps_place.png
new file mode 100755
index 0000000000000000000000000000000000000000..3283881226c5e5837ba35197de1a7bcaab603994
GIT binary patch
diff --git a/demo/src/main/res/drawable-mdpi/ic_maps_local_attraction.png b/demo/src/main/res/drawable-mdpi/ic_maps_local_attraction.png
new file mode 100755
index 0000000000000000000000000000000000000000..08782e882191b7906caa8a01d5b41849fea32fc0
GIT binary patch
diff --git a/demo/src/main/res/drawable-mdpi/ic_maps_local_bar.png b/demo/src/main/res/drawable-mdpi/ic_maps_local_bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..deff587d0c835d83e3157ebc476ec90c0437a0dd
GIT binary patch
diff --git a/demo/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png b/demo/src/main/res/drawable-mdpi/ic_maps_local_restaurant.png
new file mode 100755
index 0000000000000000000000000000000000000000..8e661bad0494a686fabc6543f4a60b83884ce774
GIT binary patch
diff --git a/demo/src/main/res/drawable-mdpi/ic_maps_place.png b/demo/src/main/res/drawable-mdpi/ic_maps_place.png
new file mode 100755
index 0000000000000000000000000000000000000000..4889870c44791762edc95bd7f0cdd1c5fe4df537
GIT binary patch
diff --git a/demo/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png b/demo/src/main/res/drawable-xhdpi/ic_maps_local_attraction.png
new file mode 100755
index 0000000000000000000000000000000000000000..39cc1d1ae9d6541c3e42cda78dbabdab28446a70
GIT binary patch
diff --git a/demo/src/main/res/drawable-xhdpi/ic_maps_local_bar.png b/demo/src/main/res/drawable-xhdpi/ic_maps_local_bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..36b9798b60af1f55a4ffdadf225718ad87d374bd
GIT binary patch
diff --git a/demo/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png b/demo/src/main/res/drawable-xhdpi/ic_maps_local_restaurant.png
new file mode 100755
index 0000000000000000000000000000000000000000..7bcba3d4b076252582003f54b80fda49489b331e
GIT binary patch
diff --git a/demo/src/main/res/drawable-xhdpi/ic_maps_place.png b/demo/src/main/res/drawable-xhdpi/ic_maps_place.png
new file mode 100755
index 0000000000000000000000000000000000000000..22b7921b52a252ec8e6fbf94fa25b372aefa81fc
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png b/demo/src/main/res/drawable-xxhdpi/ic_maps_local_attraction.png
new file mode 100755
index 0000000000000000000000000000000000000000..ee65afd53066f32d016b641ba0361e34844f6e01
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png b/demo/src/main/res/drawable-xxhdpi/ic_maps_local_bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..53e5cdea692c9e670fef14e844be2aa02b4a2031
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png b/demo/src/main/res/drawable-xxhdpi/ic_maps_local_restaurant.png
new file mode 100755
index 0000000000000000000000000000000000000000..b0dec2b2665cf474dc4435502b2328d0dcadc6f9
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxhdpi/ic_maps_place.png b/demo/src/main/res/drawable-xxhdpi/ic_maps_place.png
new file mode 100755
index 0000000000000000000000000000000000000000..660ccf526046bbdf79e3e8dc6fad532d0da2eab2
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png b/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_attraction.png
new file mode 100755
index 0000000000000000000000000000000000000000..81abdb8ea32a56ef7cf549a2a9e54850cad56f49
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png b/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_bar.png
new file mode 100755
index 0000000000000000000000000000000000000000..b70e547a7ef2847743a83a85e80c1c9c60734a27
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png b/demo/src/main/res/drawable-xxxhdpi/ic_maps_local_restaurant.png
new file mode 100755
index 0000000000000000000000000000000000000000..2b22088be03a26f06be81aa20553e4f15929cd16
GIT binary patch
diff --git a/demo/src/main/res/drawable-xxxhdpi/ic_maps_place.png b/demo/src/main/res/drawable-xxxhdpi/ic_maps_place.png
new file mode 100755
index 0000000000000000000000000000000000000000..5684325fc19fc2901fe8a998696589722da4227a
GIT binary patch
diff --git a/demo/src/main/res/layout/activity_home.xml b/demo/src/main/res/layout/activity_home.xml
new file mode 100644
index 0000000..30e3a59
--- /dev/null
+++ b/demo/src/main/res/layout/activity_home.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical">
+
+    <LinearLayout
+        android:layout_width="match_parent"
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        android:padding="24dp"
+        android:orientation="vertical">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:text="Colored"
+                android:textSize="18sp"/>
+
+            <android.support.v7.widget.SwitchCompat
+                android:id="@+id/home_switch_colored"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"/>
+
+        </LinearLayout>
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="24dp"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:text="5 items?"
+                android:textSize="18sp"/>
+
+            <android.support.v7.widget.SwitchCompat
+                android:id="@+id/home_switch_four_items"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"/>
+
+        </LinearLayout>
+
+        <TextView
+            android:id="@+id/home_current_item"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="24dp"
+            android:text="Current item: 0"
+            android:textSize="18sp"/>
+
+    </LinearLayout>
+
+    <com.aurelhubert.ahbottomnavigation.AHBottomNavigation
+        android:id="@+id/bottom_navigation"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"/>
+
+</LinearLayout>
diff --git a/demo/src/main/res/mipmap-hdpi/ic_launcher.png b/demo/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..cde69bcccec65160d92116f20ffce4fce0b5245c
GIT binary patch
diff --git a/demo/src/main/res/mipmap-mdpi/ic_launcher.png b/demo/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..c133a0cbd379f5af6dbf1a899a0293ca5eccfad0
GIT binary patch
diff --git a/demo/src/main/res/mipmap-xhdpi/ic_launcher.png b/demo/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..bfa42f0e7b91d006d22352c9ff2f134e504e3c1d
GIT binary patch
diff --git a/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png b/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..324e72cdd7480cb983fa1bcc7ce686e51ef87fe7
GIT binary patch
diff --git a/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..aee44e138434630332d88b1680f33c4b24c70ab3
GIT binary patch
diff --git a/demo/src/main/res/values-v19/styles.xml b/demo/src/main/res/values-v19/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/demo/src/main/res/values-v19/styles.xml
@@ -0,0 +1,11 @@
+<resources>
+
+    <!-- Base application theme. -->
+    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
+        <!-- Customize your theme here. -->
+        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+        <item name="colorAccent">@color/colorAccent</item>
+    </style>
+
+</resources>
diff --git a/demo/src/main/res/values-w820dp/dimens.xml b/demo/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/demo/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+<resources>
+    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
+         (such as screen margins) for screens with more than 820dp of available width. This
+         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
+    <dimen name="activity_horizontal_margin">64dp</dimen>
+</resources>
diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3e192d7
--- /dev/null
+++ b/demo/src/main/res/values/colors.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="colorPrimary">#3F51B5</color>
+    <color name="colorPrimaryDark">#303F9F</color>
+    <color name="colorAccent">#FF4081</color>
+    <color name="colorInactive">#747474</color>
+    <color name="colorActiveSmall">#FFFFFF</color>
+    <color name="colorInactiveSmall">#50FFFFFF</color>
+</resources>
diff --git a/demo/src/main/res/values/dimens.xml b/demo/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..39ab798
--- /dev/null
+++ b/demo/src/main/res/values/dimens.xml
@@ -0,0 +1,31 @@
+<resources>
+
+    <dimen name="bottom_navigation_elevation">8dp</dimen>
+
+    <dimen name="bottom_navigation_min_width">104dp</dimen>
+    <dimen name="bottom_navigation_max_width">168dp</dimen>
+    <dimen name="bottom_navigation_height">56dp</dimen>
+    <dimen name="bottom_navigation_icon">24dp</dimen>
+
+    <dimen name="bottom_navigation_padding_top_active">6dp</dimen>
+    <dimen name="bottom_navigation_padding_top_inactive">8dp</dimen>
+    <dimen name="bottom_navigation_padding_bottom">7dp</dimen>
+    <dimen name="bottom_navigation_padding_left">12dp</dimen>
+    <dimen name="bottom_navigation_padding_right">12dp</dimen>
+
+    <dimen name="bottom_navigation_text_size_active">14sp</dimen>
+    <dimen name="bottom_navigation_text_size_inactive">12sp</dimen>
+
+    <!-- Small -->
+    <dimen name="bottom_navigation_small_active_min_width">96dp</dimen>
+    <dimen name="bottom_navigation_small_active_max_width">168dp</dimen>
+    <dimen name="bottom_navigation_small_inactive_min_width">64dp</dimen>
+    <dimen name="bottom_navigation_small_inactive_max_width">96dp</dimen>
+
+    <dimen name="bottom_navigation_small_padding_top_active">6dp</dimen>
+    <dimen name="bottom_navigation_small_padding_top">16dp</dimen>
+    <dimen name="bottom_navigation_small_padding_bottom">16dp</dimen>
+
+    <dimen name="bottom_navigation_small_selected_width_difference">10dp</dimen>
+
+</resources>
diff --git a/demo/src/main/res/values/strings.xml b/demo/src/main/res/values/strings.xml
new file mode 100644
index 0000000..9b58275
--- /dev/null
+++ b/demo/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+<resources>
+    <string name="app_name">AHBottomNavigation</string>
+</resources>
diff --git a/demo/src/main/res/values/styles.xml b/demo/src/main/res/values/styles.xml
new file mode 100644
index 0000000..0eb88fe
--- /dev/null
+++ b/demo/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+<resources>
+
+    <!-- Base application theme. -->
+    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+        <!-- Customize your theme here. -->
+        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+        <item name="colorAccent">@color/colorAccent</item>
+    </style>
+
+</resources>
diff --git a/demo/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java b/demo/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
new file mode 100644
index 0000000..2094705
--- /dev/null
+++ b/demo/src/test/java/aurelhubert/com/ahbottomnavigation/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package aurelhubert.com.ahbottomnavigation;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * To work on unit tests, switch the Test Artifact in the Build Variants view.
+ */
+public class ExampleUnitTest {
+	@Test
+	public void addition_isCorrect() throws Exception {
+		assertEquals(4, 2 + 2);
+	}
+}
\ No newline at end of file
diff --git a/demo4.gif b/demo4.gif
deleted file mode 100644
index 5bcdf41db31e70c9b382d86c5d08ec626dc50ec3..0000000000000000000000000000000000000000
GIT binary patch
diff --git a/demo_4.gif b/demo_4.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6c5e6d9ddf460728495a7a993f30af7214928011
GIT binary patch
diff --git a/settings.gradle b/settings.gradle
index d718452..5a72b53 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':app', ':ahbottomnavigation'
+include ':demo', ':ahbottomnavigation'
