Permalink
Browse files

And BAAAM! There is our navigation view

  • Loading branch information...
slidenerd committed Jun 15, 2015
0 parents commit a42f455d019e8358fc1db0423c6b90c002d0f0ca
Showing with 1,054 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +1 −0 .idea/.name
  3. +22 −0 .idea/compiler.xml
  4. +3 −0 .idea/copyright/profiles_settings.xml
  5. +19 −0 .idea/gradle.xml
  6. +22 −0 .idea/misc.xml
  7. +9 −0 .idea/modules.xml
  8. +6 −0 .idea/vcs.xml
  9. +19 −0 NavigationViewDemo.iml
  10. +1 −0 app/.gitignore
  11. +97 −0 app/app.iml
  12. +26 −0 app/build.gradle
  13. +17 −0 app/proguard-rules.pro
  14. +13 −0 app/src/androidTest/java/slidenerd/vivz/navigationviewdemo/ApplicationTest.java
  15. +29 −0 app/src/main/AndroidManifest.xml
  16. +142 −0 app/src/main/java/slidenerd/vivz/navigationviewdemo/MainActivity.java
  17. +38 −0 app/src/main/java/slidenerd/vivz/navigationviewdemo/SecondActivity.java
  18. +38 −0 app/src/main/java/slidenerd/vivz/navigationviewdemo/ThirdActivity.java
  19. BIN app/src/main/res/drawable-hdpi/ic_number_0.png
  20. BIN app/src/main/res/drawable-hdpi/ic_number_1.png
  21. BIN app/src/main/res/drawable-hdpi/ic_number_2.png
  22. BIN app/src/main/res/drawable-hdpi/ic_number_3.png
  23. BIN app/src/main/res/drawable-hdpi/ic_number_4.png
  24. BIN app/src/main/res/drawable-mdpi/ic_number_0.png
  25. BIN app/src/main/res/drawable-mdpi/ic_number_1.png
  26. BIN app/src/main/res/drawable-mdpi/ic_number_2.png
  27. BIN app/src/main/res/drawable-mdpi/ic_number_3.png
  28. BIN app/src/main/res/drawable-mdpi/ic_number_4.png
  29. BIN app/src/main/res/drawable-xhdpi/ic_number_0.png
  30. BIN app/src/main/res/drawable-xhdpi/ic_number_1.png
  31. BIN app/src/main/res/drawable-xhdpi/ic_number_2.png
  32. BIN app/src/main/res/drawable-xhdpi/ic_number_3.png
  33. BIN app/src/main/res/drawable-xhdpi/ic_number_4.png
  34. BIN app/src/main/res/drawable-xxhdpi/ic_number_0.png
  35. BIN app/src/main/res/drawable-xxhdpi/ic_number_1.png
  36. BIN app/src/main/res/drawable-xxhdpi/ic_number_2.png
  37. BIN app/src/main/res/drawable-xxhdpi/ic_number_3.png
  38. BIN app/src/main/res/drawable-xxhdpi/ic_number_4.png
  39. BIN app/src/main/res/drawable-xxxhdpi/ic_number_0.png
  40. BIN app/src/main/res/drawable-xxxhdpi/ic_number_1.png
  41. BIN app/src/main/res/drawable-xxxhdpi/ic_number_2.png
  42. BIN app/src/main/res/drawable-xxxhdpi/ic_number_3.png
  43. BIN app/src/main/res/drawable-xxxhdpi/ic_number_4.png
  44. BIN app/src/main/res/drawable/img_drawer_header.jpg
  45. +34 −0 app/src/main/res/layout/activity_main.xml
  46. +17 −0 app/src/main/res/layout/activity_second.xml
  47. +16 −0 app/src/main/res/layout/activity_third.xml
  48. +17 −0 app/src/main/res/layout/drawer_header.xml
  49. +91 −0 app/src/main/res/menu/menu_drawer.xml
  50. +7 −0 app/src/main/res/menu/menu_main.xml
  51. +7 −0 app/src/main/res/menu/menu_second.xml
  52. +7 −0 app/src/main/res/menu/menu_third.xml
  53. BIN app/src/main/res/mipmap-hdpi/ic_launcher.png
  54. BIN app/src/main/res/mipmap-mdpi/ic_launcher.png
  55. BIN app/src/main/res/mipmap-xhdpi/ic_launcher.png
  56. BIN app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  57. +6 −0 app/src/main/res/values-w820dp/dimens.xml
  58. +9 −0 app/src/main/res/values/colors.xml
  59. +5 −0 app/src/main/res/values/dimens.xml
  60. +18 −0 app/src/main/res/values/strings.xml
  61. +13 −0 app/src/main/res/values/styles.xml
  62. +19 −0 build.gradle
  63. BIN extras/res 2/drawable-hdpi/ic_number_1.png
  64. BIN extras/res 2/drawable-mdpi/ic_number_1.png
  65. BIN extras/res 2/drawable-xhdpi/ic_number_1.png
  66. BIN extras/res 2/drawable-xxhdpi/ic_number_1.png
  67. BIN extras/res 2/drawable-xxxhdpi/ic_number_1.png
  68. BIN extras/res 3/drawable-hdpi/ic_number_2.png
  69. BIN extras/res 3/drawable-mdpi/ic_number_2.png
  70. BIN extras/res 3/drawable-xhdpi/ic_number_2.png
  71. BIN extras/res 3/drawable-xxhdpi/ic_number_2.png
  72. BIN extras/res 3/drawable-xxxhdpi/ic_number_2.png
  73. BIN extras/res 4/drawable-hdpi/ic_number_3.png
  74. BIN extras/res 4/drawable-mdpi/ic_number_3.png
  75. BIN extras/res 4/drawable-xhdpi/ic_number_3.png
  76. BIN extras/res 4/drawable-xxhdpi/ic_number_3.png
  77. BIN extras/res 4/drawable-xxxhdpi/ic_number_3.png
  78. BIN extras/res 5/drawable-hdpi/ic_number_4.png
  79. BIN extras/res 5/drawable-mdpi/ic_number_4.png
  80. BIN extras/res 5/drawable-xhdpi/ic_number_4.png
  81. BIN extras/res 5/drawable-xxhdpi/ic_number_4.png
  82. BIN extras/res 5/drawable-xxxhdpi/ic_number_4.png
  83. BIN extras/res/drawable-hdpi/ic_number_0.png
  84. BIN extras/res/drawable-mdpi/ic_number_0.png
  85. BIN extras/res/drawable-xhdpi/ic_number_0.png
  86. BIN extras/res/drawable-xxhdpi/ic_number_0.png
  87. BIN extras/res/drawable-xxxhdpi/ic_number_0.png
  88. +18 −0 gradle.properties
  89. BIN gradle/wrapper/gradle-wrapper.jar
  90. +6 −0 gradle/wrapper/gradle-wrapper.properties
  91. +164 −0 gradlew
  92. +90 −0 gradlew.bat
  93. +1 −0 settings.gradle
@@ -0,0 +1,7 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
@@ -0,0 +1 @@
Navigation View Demo
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="LOCAL" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.2.1" />
<option name="gradleJvm" value="1.8" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/NavigationViewDemo.iml" filepath="$PROJECT_DIR$/NavigationViewDemo.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="NavigationViewDemo" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -0,0 +1 @@
/build
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="NavigationViewDemo" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugAndroidTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/design/22.2.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="design-22.2.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
</component>
</module>
@@ -0,0 +1,26 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc2"
defaultConfig {
applicationId "slidenerd.vivz.navigationviewdemo"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:design:22.2.0'
}
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/vivz/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 *;
#}
@@ -0,0 +1,13 @@
package slidenerd.vivz.navigationviewdemo;
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);
}
}
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="slidenerd.vivz.navigationviewdemo" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SecondActivity"
android:label="@string/title_activity_second" >
</activity>
<activity
android:name=".ThirdActivity"
android:label="@string/title_activity_third" >
</activity>
</application>
</manifest>
Oops, something went wrong.

0 comments on commit a42f455

Please sign in to comment.