diff --git a/.gitignore b/.gitignore
index 6ac2e3f..b2e41e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,5 +13,5 @@
/gradlew.bat
/local.properties
-/app/build
+/sample/build
/library/build
\ No newline at end of file
diff --git a/README.md b/README.md
index 1d3660e..62935a4 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[![Join the chat at https://gitter.im/rebus007/HeaderView](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/rebus007/HeaderView?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[ ![Download](https://api.bintray.com/packages/raphaelbussa/maven/header-view/images/download.svg) ](https://bintray.com/raphaelbussa/maven/header-view/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Header--View-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2123)
-![Logo](https://raw.githubusercontent.com/rebus007/HeaderView/master/img/web_hi_res_512.png)
+![Logo](https://raw.githubusercontent.com/rebus007/HeaderView/master/img/ic_launcher-web.png)
This is a view for NavigationView in android.support.design library
@@ -18,7 +18,7 @@ repositories {
```
```Gradle
dependencies {
- compile 'rebus:header-view:2.0.0-BETA-6'
+ compile 'rebus:header-view:2.0.0'
}
```
### How to use
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 100755
index 6a612ba..0000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100755
index 55e5225..0000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
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 100755
index a73a98a..0000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100755
index c9658c0..0000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
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 100755
index 7f6031c..0000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100755
index 6fc7d86..0000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
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 100755
index cae39e9..0000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100755
index 2d0709b..0000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
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 100755
index 0caa547..0000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100755
index 634007c..0000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
deleted file mode 100644
index 47e3ee6..0000000
--- a/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
- Header View
- Settings
- Account
-
diff --git a/build.gradle b/build.gradle
index 667ae86..fcff93e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,12 +26,12 @@ buildscript {
ext {
var = [
- compileSdk: 25,
- buildTools: "25.0.3",
- minSdk : 11,
- targetSdk : 25,
- version : "2.0.0-BETA-6",
- supportLib: "25.3.1"
+ compileSdk: 26,
+ buildTools: "26.0.1",
+ minSdk : 14,
+ targetSdk : 26,
+ version : "2.0.0",
+ supportLib: "26.0.1"
]
}
@@ -39,14 +39,15 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.3.2'
- classpath 'com.novoda:bintray-release:0.4.0'
+ classpath 'com.android.tools.build:gradle:2.3.3'
+ classpath 'com.novoda:bintray-release:0.5.0'
}
}
allprojects {
repositories {
jcenter()
+ maven { url "https://maven.google.com" }
}
}
diff --git a/img/ic_launcher-web.png b/img/ic_launcher-web.png
new file mode 100644
index 0000000..5c2ebb0
Binary files /dev/null and b/img/ic_launcher-web.png differ
diff --git a/img/web_hi_res_512.png b/img/web_hi_res_512.png
deleted file mode 100755
index fa2d5bb..0000000
Binary files a/img/web_hi_res_512.png and /dev/null differ
diff --git a/library/build.gradle b/library/build.gradle
index 4541e9f..2bf1d24 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -47,6 +47,10 @@ android {
}
}
+ lintOptions {
+ abortOnError false
+ }
+
}
dependencies {
diff --git a/library/src/main/java/rebus/header/view/HeaderView.java b/library/src/main/java/rebus/header/view/HeaderView.java
index b4e3b23..4933e39 100644
--- a/library/src/main/java/rebus/header/view/HeaderView.java
+++ b/library/src/main/java/rebus/header/view/HeaderView.java
@@ -834,6 +834,14 @@ public boolean onAdd() {
return headerCallback.onAdd();
}
+ @SuppressWarnings("unused")
+ public void setTypeface(Typeface tf) {
+ typeface = tf;
+ username.setTypeface(tf);
+ email.setTypeface(tf);
+ invalidate();
+ }
+
@RestrictTo(LIBRARY_GROUP)
@IntDef({STYLE_NORMAL, STYLE_COMPACT})
@IntRange(from = 1, to = 2)
@@ -848,12 +856,4 @@ public boolean onAdd() {
public @interface Theme {
}
- @SuppressWarnings("unused")
- public void setTypeface(Typeface tf) {
- typeface = tf;
- username.setTypeface(tf);
- email.setTypeface(tf);
- invalidate();
- }
-
}
diff --git a/app/build.gradle b/sample/build.gradle
similarity index 97%
rename from app/build.gradle
rename to sample/build.gradle
index 060fd27..6b1d604 100644
--- a/app/build.gradle
+++ b/sample/build.gradle
@@ -43,6 +43,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+
+ lintOptions {
+ abortOnError false
+ }
}
dependencies {
diff --git a/app/proguard-rules.pro b/sample/proguard-rules.pro
similarity index 100%
rename from app/proguard-rules.pro
rename to sample/proguard-rules.pro
diff --git a/app/src/androidTest/java/rebus/header/view/sample/ExampleInstrumentedTest.java b/sample/src/androidTest/java/rebus/header/view/sample/ExampleInstrumentedTest.java
similarity index 100%
rename from app/src/androidTest/java/rebus/header/view/sample/ExampleInstrumentedTest.java
rename to sample/src/androidTest/java/rebus/header/view/sample/ExampleInstrumentedTest.java
diff --git a/app/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
similarity index 100%
rename from app/src/main/AndroidManifest.xml
rename to sample/src/main/AndroidManifest.xml
diff --git a/app/src/main/assets/Oswald-Stencbab.ttf b/sample/src/main/assets/Oswald-Stencbab.ttf
similarity index 100%
rename from app/src/main/assets/Oswald-Stencbab.ttf
rename to sample/src/main/assets/Oswald-Stencbab.ttf
diff --git a/sample/src/main/ic_launcher-web.png b/sample/src/main/ic_launcher-web.png
new file mode 100644
index 0000000..5c2ebb0
Binary files /dev/null and b/sample/src/main/ic_launcher-web.png differ
diff --git a/app/src/main/java/rebus/header/view/sample/CustomApplication.java b/sample/src/main/java/rebus/header/view/sample/CustomApplication.java
similarity index 94%
rename from app/src/main/java/rebus/header/view/sample/CustomApplication.java
rename to sample/src/main/java/rebus/header/view/sample/CustomApplication.java
index 7c92a8a..1aeb711 100644
--- a/app/src/main/java/rebus/header/view/sample/CustomApplication.java
+++ b/sample/src/main/java/rebus/header/view/sample/CustomApplication.java
@@ -30,9 +30,7 @@
import com.bumptech.glide.Glide;
-import rebus.header.view.HeaderView;
import rebus.header.view.ImageLoader;
-import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
/**
* Created by raphaelbussa on 13/01/17.
@@ -67,11 +65,11 @@ public void loadImage(Uri url, ImageView imageView, @ImageLoader.Type int type)
}
});
- CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
+ /*CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("Oswald-Stencbab.ttf")
.setFontAttrId(R.attr.fontPath)
.addCustomViewWithSetTypeface(HeaderView.class)
.build()
- );
+ );*/
}
}
diff --git a/app/src/main/java/rebus/header/view/sample/MainActivity.java b/sample/src/main/java/rebus/header/view/sample/MainActivity.java
similarity index 77%
rename from app/src/main/java/rebus/header/view/sample/MainActivity.java
rename to sample/src/main/java/rebus/header/view/sample/MainActivity.java
index b55b937..4a611f7 100644
--- a/app/src/main/java/rebus/header/view/sample/MainActivity.java
+++ b/sample/src/main/java/rebus/header/view/sample/MainActivity.java
@@ -25,16 +25,23 @@
package rebus.header.view.sample;
import android.content.Context;
+import android.os.Build;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
+import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
+import android.text.Html;
+import android.text.Spanned;
+import android.text.method.LinkMovementMethod;
import android.util.Log;
+import android.view.MenuItem;
import android.view.View;
+import android.widget.TextView;
import android.widget.Toast;
import rebus.header.view.HeaderCallback;
@@ -43,7 +50,7 @@
import rebus.header.view.Profile;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;
-public class MainActivity extends AppCompatActivity {
+public class MainActivity extends AppCompatActivity implements Toolbar.OnMenuItemClickListener {
private static final String TAG = MainActivity.class.getName();
@@ -57,11 +64,13 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
- toolbar = (Toolbar) findViewById(R.id.toolbar);
+ toolbar = findViewById(R.id.toolbar);
toolbar.setTitle(getString(R.string.app_name));
- drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
- navigationView = (NavigationView) findViewById(R.id.nav_view);
- headerView = (HeaderView) navigationView.getHeaderView(0).findViewById(R.id.header_view);
+ toolbar.inflateMenu(R.menu.menu_main);
+ toolbar.setOnMenuItemClickListener(this);
+ drawerLayout = findViewById(R.id.drawer_layout);
+ navigationView = findViewById(R.id.nav_view);
+ headerView = navigationView.getHeaderView(0).findViewById(R.id.header_view);
actionBarDrawerToggle = new ActionBarDrawerToggle(MainActivity.this, drawerLayout, toolbar, R.string.app_name, R.string.app_name);
drawerLayout.post(new Runnable() {
@Override
@@ -176,9 +185,49 @@ public boolean onAdd() {
}
+ @Override
+ public void onBackPressed() {
+ if (drawerLayout != null && drawerLayout.isDrawerOpen(GravityCompat.START)) {
+ drawerLayout.closeDrawer(GravityCompat.START);
+ return;
+ }
+ super.onBackPressed();
+ }
+
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}
+ @SuppressWarnings("deprecation")
+ private Spanned fromHtml(String value) {
+ if (value == null) {
+ value = "";
+ }
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
+ return Html.fromHtml(value, Html.FROM_HTML_MODE_LEGACY);
+ } else {
+ return Html.fromHtml(value);
+ }
+ }
+
+ @Override
+ public boolean onMenuItemClick(MenuItem item) {
+ switch (item.getItemId()) {
+ case R.id.action_info:
+ AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
+ builder.setTitle(getString(R.string.action_info));
+ builder.setMessage(fromHtml(getString(R.string.info_message)));
+ builder.setPositiveButton(getString(R.string.close), null);
+ AlertDialog dialog = builder.create();
+ dialog.show();
+ TextView textView = dialog.findViewById(android.R.id.message);
+ if (textView != null) {
+ textView.setMovementMethod(LinkMovementMethod.getInstance());
+ }
+ return true;
+ default:
+ return false;
+ }
+ }
}
diff --git a/app/src/main/res/drawable-hdpi/ic_action_settings.png b/sample/src/main/res/drawable-hdpi/ic_action_settings.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_action_settings.png
rename to sample/src/main/res/drawable-hdpi/ic_action_settings.png
diff --git a/app/src/main/res/drawable-hdpi/ic_avatar_batman.png b/sample/src/main/res/drawable-hdpi/ic_avatar_batman.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_avatar_batman.png
rename to sample/src/main/res/drawable-hdpi/ic_avatar_batman.png
diff --git a/app/src/main/res/drawable-hdpi/ic_bg_batman.png b/sample/src/main/res/drawable-hdpi/ic_bg_batman.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_bg_batman.png
rename to sample/src/main/res/drawable-hdpi/ic_bg_batman.png
diff --git a/app/src/main/res/drawable-hdpi/ic_placeholder.png b/sample/src/main/res/drawable-hdpi/ic_placeholder.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_placeholder.png
rename to sample/src/main/res/drawable-hdpi/ic_placeholder.png
diff --git a/app/src/main/res/drawable-hdpi/ic_placeholder_bg.png b/sample/src/main/res/drawable-hdpi/ic_placeholder_bg.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_placeholder_bg.png
rename to sample/src/main/res/drawable-hdpi/ic_placeholder_bg.png
diff --git a/app/src/main/res/drawable-mdpi/ic_action_settings.png b/sample/src/main/res/drawable-mdpi/ic_action_settings.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_action_settings.png
rename to sample/src/main/res/drawable-mdpi/ic_action_settings.png
diff --git a/app/src/main/res/drawable-mdpi/ic_avatar_batman.png b/sample/src/main/res/drawable-mdpi/ic_avatar_batman.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_avatar_batman.png
rename to sample/src/main/res/drawable-mdpi/ic_avatar_batman.png
diff --git a/app/src/main/res/drawable-mdpi/ic_bg_batman.png b/sample/src/main/res/drawable-mdpi/ic_bg_batman.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_bg_batman.png
rename to sample/src/main/res/drawable-mdpi/ic_bg_batman.png
diff --git a/app/src/main/res/drawable-mdpi/ic_placeholder.png b/sample/src/main/res/drawable-mdpi/ic_placeholder.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_placeholder.png
rename to sample/src/main/res/drawable-mdpi/ic_placeholder.png
diff --git a/app/src/main/res/drawable-mdpi/ic_placeholder_bg.png b/sample/src/main/res/drawable-mdpi/ic_placeholder_bg.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_placeholder_bg.png
rename to sample/src/main/res/drawable-mdpi/ic_placeholder_bg.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_action_settings.png b/sample/src/main/res/drawable-xhdpi/ic_action_settings.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_action_settings.png
rename to sample/src/main/res/drawable-xhdpi/ic_action_settings.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_avatar_batman.png b/sample/src/main/res/drawable-xhdpi/ic_avatar_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_avatar_batman.png
rename to sample/src/main/res/drawable-xhdpi/ic_avatar_batman.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_bg_batman.png b/sample/src/main/res/drawable-xhdpi/ic_bg_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_bg_batman.png
rename to sample/src/main/res/drawable-xhdpi/ic_bg_batman.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_placeholder.png b/sample/src/main/res/drawable-xhdpi/ic_placeholder.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_placeholder.png
rename to sample/src/main/res/drawable-xhdpi/ic_placeholder.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_placeholder_bg.png b/sample/src/main/res/drawable-xhdpi/ic_placeholder_bg.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_placeholder_bg.png
rename to sample/src/main/res/drawable-xhdpi/ic_placeholder_bg.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_settings.png b/sample/src/main/res/drawable-xxhdpi/ic_action_settings.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_action_settings.png
rename to sample/src/main/res/drawable-xxhdpi/ic_action_settings.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_avatar_batman.png b/sample/src/main/res/drawable-xxhdpi/ic_avatar_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_avatar_batman.png
rename to sample/src/main/res/drawable-xxhdpi/ic_avatar_batman.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_bg_batman.png b/sample/src/main/res/drawable-xxhdpi/ic_bg_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_bg_batman.png
rename to sample/src/main/res/drawable-xxhdpi/ic_bg_batman.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_placeholder.png b/sample/src/main/res/drawable-xxhdpi/ic_placeholder.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_placeholder.png
rename to sample/src/main/res/drawable-xxhdpi/ic_placeholder.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_placeholder_bg.png b/sample/src/main/res/drawable-xxhdpi/ic_placeholder_bg.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_placeholder_bg.png
rename to sample/src/main/res/drawable-xxhdpi/ic_placeholder_bg.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_settings.png b/sample/src/main/res/drawable-xxxhdpi/ic_action_settings.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_action_settings.png
rename to sample/src/main/res/drawable-xxxhdpi/ic_action_settings.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_avatar_batman.png b/sample/src/main/res/drawable-xxxhdpi/ic_avatar_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_avatar_batman.png
rename to sample/src/main/res/drawable-xxxhdpi/ic_avatar_batman.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_bg_batman.png b/sample/src/main/res/drawable-xxxhdpi/ic_bg_batman.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_bg_batman.png
rename to sample/src/main/res/drawable-xxxhdpi/ic_bg_batman.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_placeholder.png b/sample/src/main/res/drawable-xxxhdpi/ic_placeholder.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_placeholder.png
rename to sample/src/main/res/drawable-xxxhdpi/ic_placeholder.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_placeholder_bg.png b/sample/src/main/res/drawable-xxxhdpi/ic_placeholder_bg.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_placeholder_bg.png
rename to sample/src/main/res/drawable-xxxhdpi/ic_placeholder_bg.png
diff --git a/app/src/main/res/layout/activity_main.xml b/sample/src/main/res/layout/activity_main.xml
similarity index 89%
rename from app/src/main/res/layout/activity_main.xml
rename to sample/src/main/res/layout/activity_main.xml
index 36fa597..988c103 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/sample/src/main/res/layout/activity_main.xml
@@ -38,14 +38,21 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
+ app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
+
+
diff --git a/app/src/main/res/layout/header_drawer.xml b/sample/src/main/res/layout/header_drawer.xml
similarity index 86%
rename from app/src/main/res/layout/header_drawer.xml
rename to sample/src/main/res/layout/header_drawer.xml
index 608075b..951b0d4 100644
--- a/app/src/main/res/layout/header_drawer.xml
+++ b/sample/src/main/res/layout/header_drawer.xml
@@ -37,10 +37,10 @@
app:hv_style="normal"
app:hv_theme="light" />
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/drawer.xml b/sample/src/main/res/menu/drawer.xml
similarity index 53%
rename from app/src/main/res/menu/drawer.xml
rename to sample/src/main/res/menu/drawer.xml
index 0ca57f2..15b7fa7 100644
--- a/app/src/main/res/menu/drawer.xml
+++ b/sample/src/main/res/menu/drawer.xml
@@ -24,41 +24,23 @@
\ No newline at end of file
diff --git a/sample/src/main/res/menu/menu_main.xml b/sample/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..47d0abe
--- /dev/null
+++ b/sample/src/main/res/menu/menu_main.xml
@@ -0,0 +1,31 @@
+
+
+
\ No newline at end of file
diff --git a/sample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/sample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..c9ad5f9
--- /dev/null
+++ b/sample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/sample/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/sample/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..c9ad5f9
--- /dev/null
+++ b/sample/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/sample/src/main/res/mipmap-hdpi/ic_launcher.png b/sample/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100755
index 0000000..78e1a7a
Binary files /dev/null and b/sample/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/sample/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/sample/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..d718932
Binary files /dev/null and b/sample/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/sample/src/main/res/mipmap-hdpi/ic_launcher_round.png b/sample/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100755
index 0000000..73c8f63
Binary files /dev/null and b/sample/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/sample/src/main/res/mipmap-mdpi/ic_launcher.png b/sample/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100755
index 0000000..71e1087
Binary files /dev/null and b/sample/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/sample/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/sample/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..47a5cf3
Binary files /dev/null and b/sample/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/sample/src/main/res/mipmap-mdpi/ic_launcher_round.png b/sample/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100755
index 0000000..f26a31c
Binary files /dev/null and b/sample/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/sample/src/main/res/mipmap-xhdpi/ic_launcher.png b/sample/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100755
index 0000000..be2b6dc
Binary files /dev/null and b/sample/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/sample/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/sample/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..f1b3d5a
Binary files /dev/null and b/sample/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100755
index 0000000..8fccd7a
Binary files /dev/null and b/sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png b/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100755
index 0000000..782290d
Binary files /dev/null and b/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/sample/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/sample/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..62c54d9
Binary files /dev/null and b/sample/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100755
index 0000000..9124dc6
Binary files /dev/null and b/sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100755
index 0000000..98075ac
Binary files /dev/null and b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 0000000..c558710
Binary files /dev/null and b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100755
index 0000000..4b5f546
Binary files /dev/null and b/sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values-v21/styles.xml b/sample/src/main/res/values-v21/styles.xml
similarity index 100%
rename from app/src/main/res/values-v21/styles.xml
rename to sample/src/main/res/values-v21/styles.xml
diff --git a/app/src/main/res/values/colors.xml b/sample/src/main/res/values/colors.xml
similarity index 100%
rename from app/src/main/res/values/colors.xml
rename to sample/src/main/res/values/colors.xml
diff --git a/sample/src/main/res/values/ic_launcher_background.xml b/sample/src/main/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..0cc2fe2
--- /dev/null
+++ b/sample/src/main/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #3F51B5
+
\ No newline at end of file
diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml
new file mode 100644
index 0000000..4f4730d
--- /dev/null
+++ b/sample/src/main/res/values/strings.xml
@@ -0,0 +1,16 @@
+
+ Header View
+ Settings
+ Account
+ Info
+
+
+ Raphaël Bussa
+ GitHub Twitter Google+ Linkedin
+ ]]>
+
+ Close
+ Open Drawer
+
+
diff --git a/app/src/main/res/values/styles.xml b/sample/src/main/res/values/styles.xml
similarity index 100%
rename from app/src/main/res/values/styles.xml
rename to sample/src/main/res/values/styles.xml
diff --git a/settings.gradle b/settings.gradle
index 3306997..52baf7e 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1 +1 @@
-include ':app', ':library'
+include ':sample', ':library'