diff --git a/.gitignore b/.gitignore index cf52652..d95ba64 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,6 @@ bin/ gen/ # Gradle files -local.properties .gradle/ build/ @@ -25,11 +24,5 @@ proguard/ # Log Files *.log - -# Mac Files -*.DS_Store - -# Intellij Idea and Android Studio files -.idea -*.iml - +.idea/ +*.iml \ No newline at end of file diff --git a/.settings/gradle/org.springsource.ide.eclipse.gradle.core.import.prefs b/.settings/gradle/org.springsource.ide.eclipse.gradle.core.import.prefs deleted file mode 100644 index 692e075..0000000 --- a/.settings/gradle/org.springsource.ide.eclipse.gradle.core.import.prefs +++ /dev/null @@ -1,10 +0,0 @@ -#org.springsource.ide.eclipse.gradle.core.preferences.GradleImportPreferences -#Sun Jan 11 18:49:20 CET 2015 -addResourceFilters=true -afterTasks=afterEclipseImport; -beforeTasks=cleanEclipse;eclipse; -enableAfterTasks=true -enableBeforeTasks=true -enableDSLD=false -enableDependendencyManagement=true -projects=MaterialDesign; diff --git a/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs b/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs deleted file mode 100644 index a59d3b8..0000000 --- a/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences -#Sun Jan 11 18:49:02 CET 2015 -build.family.org.gradle.tooling.model.eclipse.HierarchicalEclipseProject=;MaterialDesign;MaterialDesignDemo; -org.springsource.ide.eclipse.gradle.rootprojectloc= diff --git a/MaterialDesign/.classpath b/MaterialDesign/.classpath deleted file mode 100644 index efc76ed..0000000 --- a/MaterialDesign/.classpath +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/MaterialDesign/.project b/MaterialDesign/.project deleted file mode 100644 index e945e83..0000000 --- a/MaterialDesign/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - MaterialDesign - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - org.springsource.ide.eclipse.gradle.core.nature - org.eclipse.jdt.core.javanature - com.android.ide.eclipse.adt.AndroidNature - - diff --git a/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs b/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs deleted file mode 100644 index 0787811..0000000 --- a/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences -#Sun Jan 11 18:49:24 CET 2015 -org.springsource.ide.eclipse.gradle.linkedresources= -org.springsource.ide.eclipse.gradle.rootprojectloc=.. diff --git a/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs b/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs deleted file mode 100644 index ea4c4ff..0000000 --- a/MaterialDesign/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs +++ /dev/null @@ -1,9 +0,0 @@ -#org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences -#Sun Jan 11 18:49:23 CET 2015 -addResourceFilters=true -afterTasks=afterEclipseImport; -beforeTasks=cleanEclipse;eclipse; -enableAfterTasks=true -enableBeforeTasks=true -enableDSLD=false -useHierarchicalNames=false diff --git a/MaterialDesign/.settings/org.eclipse.jdt.core.prefs b/MaterialDesign/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8000cd6..0000000 --- a/MaterialDesign/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 diff --git a/MaterialDesign/AndroidManifest.xml b/MaterialDesign/AndroidManifest.xml deleted file mode 100644 index baed47e..0000000 --- a/MaterialDesign/AndroidManifest.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/MaterialDesign/build.gradle b/MaterialDesign/build.gradle deleted file mode 100644 index 41adf1f..0000000 --- a/MaterialDesign/build.gradle +++ /dev/null @@ -1,113 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: 'com.github.dcendents.android-maven' -apply plugin: 'com.jfrog.bintray' - -android { - compileSdkVersion 19 - buildToolsVersion '20.0.0' - - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - - renderscript.srcDirs = ['src'] - - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - androidTest.setRoot('tests') - } - - defaultConfig { - minSdkVersion 8 - targetSdkVersion 21 - versionCode 6 - versionName '1.4' - } -} - -ext.siteUrl = 'https://github.com/navasmdc/MaterialDesignLibrary' -ext.issueUrl = 'https://github.com/navasmdc/MaterialDesignLibrary/issues' -ext.gitUrl = 'https://github.com/navasmdc/MaterialDesignLibrary.git' - -bintray { - user = hasProperty('BINTRAY_USER') ? BINTRAY_USER : "navasmdc" - key = hasProperty('BINTRAY_KEY') ? BINTRAY_PASSWORD : "" - - configurations = ["archives"] - pkg { - repo = 'maven' - name = 'MaterialDesignLibrary' - desc = 'This is a library with components of Android L to you use in android 2.2' - websiteUrl = siteUrl - issueTrackerUrl = issueUrl - vcsUrl = gitUrl - licenses = ['Apache-2.0'] - labels = [] - publicDownloadNumbers = true - } -} - -dependencies { - compile 'com.nineoldandroids:library:2.4.+' - compile 'com.android.support:support-v4:21.+' -} - -install { - repositories.mavenInstaller { - pom { - project { - packaging 'aar' - name 'MaterialDesignLibrary' - url siteUrl - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - developers { - developer { - id 'navasmdc' - name 'Iván Navas' - email 'i.navas.mdc@gmail.com' - } - } - scm { - connection gitUrl - developerConnection gitUrl - url siteUrl - } - } - } - } -} - -task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' -} - -task javadoc(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs - classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -task findConventions << { - println project.getConvention() -} - diff --git a/MaterialDesign/libs/android-support-v4.jar b/MaterialDesign/libs/android-support-v4.jar deleted file mode 100644 index ac4181f..0000000 Binary files a/MaterialDesign/libs/android-support-v4.jar and /dev/null differ diff --git a/MaterialDesign/libs/nineoldandroids-2.4.0.jar b/MaterialDesign/libs/nineoldandroids-2.4.0.jar deleted file mode 100644 index 43ee45f..0000000 Binary files a/MaterialDesign/libs/nineoldandroids-2.4.0.jar and /dev/null differ diff --git a/MaterialDesign/lint.xml b/MaterialDesign/lint.xml deleted file mode 100644 index 417860a..0000000 --- a/MaterialDesign/lint.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/MaterialDesign/project.properties b/MaterialDesign/project.properties deleted file mode 100644 index 91d2b02..0000000 --- a/MaterialDesign/project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-19 -android.library=true diff --git a/MaterialDesign/res/drawable-hdpi/ic_launcher.png b/MaterialDesign/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 96a442e..0000000 Binary files a/MaterialDesign/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesign/res/drawable-mdpi/ic_launcher.png b/MaterialDesign/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 359047d..0000000 Binary files a/MaterialDesign/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesign/res/drawable-xhdpi/ic_launcher.png b/MaterialDesign/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 71c6d76..0000000 Binary files a/MaterialDesign/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesign/res/drawable-xxhdpi/sprite_check.png b/MaterialDesign/res/drawable-xxhdpi/sprite_check.png deleted file mode 100644 index 483004d..0000000 Binary files a/MaterialDesign/res/drawable-xxhdpi/sprite_check.png and /dev/null differ diff --git a/MaterialDesignDemo/.classpath b/MaterialDesignDemo/.classpath deleted file mode 100644 index 5176974..0000000 --- a/MaterialDesignDemo/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/MaterialDesignDemo/.project b/MaterialDesignDemo/.project deleted file mode 100644 index 7bfb0ac..0000000 --- a/MaterialDesignDemo/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - MaterialDesignDemo - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/MaterialDesignDemo/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs b/MaterialDesignDemo/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs deleted file mode 100644 index 333bf0c..0000000 --- a/MaterialDesignDemo/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences -#Sun Jan 11 18:49:02 CET 2015 -org.springsource.ide.eclipse.gradle.rootprojectloc=.. diff --git a/MaterialDesignDemo/AndroidManifest.xml b/MaterialDesignDemo/AndroidManifest.xml deleted file mode 100644 index 60bbfbd..0000000 --- a/MaterialDesignDemo/AndroidManifest.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/MaterialDesignDemo/bin/MaterialDesignDemo.apk b/MaterialDesignDemo/bin/MaterialDesignDemo.apk deleted file mode 100644 index 414d4c2..0000000 Binary files a/MaterialDesignDemo/bin/MaterialDesignDemo.apk and /dev/null differ diff --git a/MaterialDesignDemo/bin/R.txt b/MaterialDesignDemo/bin/R.txt deleted file mode 100644 index 5e810ac..0000000 --- a/MaterialDesignDemo/bin/R.txt +++ /dev/null @@ -1,118 +0,0 @@ -int anim dialog_main_hide_amination 0x7f040000 -int anim dialog_main_show_amination 0x7f040001 -int anim dialog_root_hide_amin 0x7f040002 -int anim dialog_root_show_amin 0x7f040003 -int anim progress_indeterminate_animation 0x7f040004 -int anim snackbar_hide_animation 0x7f040005 -int anim snackbar_show_animation 0x7f040006 -int attr animate 0x7f01000d -int attr checkBoxSize 0x7f010009 -int attr checked 0x7f010008 -int attr clickAfterRipple 0x7f01000f -int attr iconDrawable 0x7f01000b -int attr iconSize 0x7f01000c -int attr max 0x7f010003 -int attr min 0x7f010004 -int attr progress 0x7f010006 -int attr ringWidth 0x7f010007 -int attr rippleBorderRadius 0x7f01000e -int attr rippleColor 0x7f010000 -int attr rippleSpeed 0x7f010001 -int attr showNumberIndicator 0x7f010002 -int attr thumbSize 0x7f01000a -int attr value 0x7f010005 -int color green 0x7f050000 -int color thumbColor 0x7f050001 -int drawable background_button 0x7f020000 -int drawable background_button_float 0x7f020001 -int drawable background_button_rectangle 0x7f020002 -int drawable background_checkbox 0x7f020003 -int drawable background_checkbox_check 0x7f020004 -int drawable background_checkbox_uncheck 0x7f020005 -int drawable background_progress 0x7f020006 -int drawable background_switch_ball_uncheck 0x7f020007 -int drawable background_transparent 0x7f020008 -int drawable blue_background 0x7f020009 -int drawable dialog_background 0x7f02000a -int drawable float_button1_shadowp 0x7f02000b -int drawable float_button_shadow1 0x7f02000c -int drawable ic_action_new 0x7f02000d -int drawable ic_launcher 0x7f02000e -int drawable ic_next 0x7f02000f -int drawable ic_reloj_max 0x7f020010 -int drawable icn_button 0x7f020011 -int drawable icn_progress 0x7f020012 -int drawable icn_select_color 0x7f020013 -int drawable icn_switch 0x7f020014 -int drawable icn_widget 0x7f020015 -int drawable selector_list 0x7f020016 -int drawable shadow_down 0x7f020017 -int drawable shadow_right 0x7f020018 -int drawable sprite_check 0x7f020019 -int drawable transparent_backgrouns 0x7f02001a -int id blue 0x7f080019 -int id button 0x7f080001 -int id buttonColorSelector 0x7f080005 -int id buttonDialog 0x7f080013 -int id buttonFloat 0x7f080004 -int id buttonFloatSmall 0x7f080002 -int id buttonIcon 0x7f080003 -int id buttonSnackBar 0x7f080012 -int id button_accept 0x7f080020 -int id button_cancel 0x7f08001f -int id buttonflat 0x7f080000 -int id checkBox 0x7f080010 -int id contentDialog 0x7f08001b -int id contentSelector 0x7f080015 -int id dialog_rootView 0x7f08001a -int id green 0x7f080018 -int id itemButtons 0x7f080006 -int id itemProgress 0x7f080008 -int id itemSwitches 0x7f080007 -int id itemWidgets 0x7f080009 -int id message 0x7f08001e -int id message_scrollView 0x7f08001d -int id number_indicator_spinner_content 0x7f080021 -int id progressBarCircularIndetermininate 0x7f08000a -int id progressBarIndeterminate 0x7f08000b -int id progressBarIndeterminateDeterminate 0x7f08000c -int id progressDeterminate 0x7f08000d -int id red 0x7f080017 -int id rootSelector 0x7f080014 -int id shape_bacground 0x7f080024 -int id slider 0x7f08000e -int id sliderNumber 0x7f08000f -int id snackbar 0x7f080022 -int id switchView 0x7f080011 -int id text 0x7f080023 -int id title 0x7f08001c -int id viewColor 0x7f080016 -int layout activity_buttons 0x7f030000 -int layout activity_main 0x7f030001 -int layout activity_progress 0x7f030002 -int layout activity_switchs 0x7f030003 -int layout activity_widgets 0x7f030004 -int layout color_selector 0x7f030005 -int layout dialog 0x7f030006 -int layout number_indicator_spinner 0x7f030007 -int layout snackbar 0x7f030008 -int string app_name 0x7f060000 -int style AppBaseTheme 0x7f070000 -int style AppTheme 0x7f070001 -int[] styleable CustomAttributes { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f } -int styleable CustomAttributes_animate 13 -int styleable CustomAttributes_checkBoxSize 9 -int styleable CustomAttributes_checked 8 -int styleable CustomAttributes_clickAfterRipple 15 -int styleable CustomAttributes_iconDrawable 11 -int styleable CustomAttributes_iconSize 12 -int styleable CustomAttributes_max 3 -int styleable CustomAttributes_min 4 -int styleable CustomAttributes_progress 6 -int styleable CustomAttributes_ringWidth 7 -int styleable CustomAttributes_rippleBorderRadius 14 -int styleable CustomAttributes_rippleColor 0 -int styleable CustomAttributes_rippleSpeed 1 -int styleable CustomAttributes_showNumberIndicator 2 -int styleable CustomAttributes_thumbSize 10 -int styleable CustomAttributes_value 5 diff --git a/MaterialDesignDemo/bin/classes.dex b/MaterialDesignDemo/bin/classes.dex deleted file mode 100644 index 106bf22..0000000 Binary files a/MaterialDesignDemo/bin/classes.dex and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$anim.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$anim.class deleted file mode 100644 index 97b2eec..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$anim.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$attr.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$attr.class deleted file mode 100644 index dbf7d4f..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$attr.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$color.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$color.class deleted file mode 100644 index 79f0356..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$color.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$drawable.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$drawable.class deleted file mode 100644 index a71c7cb..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$drawable.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$id.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$id.class deleted file mode 100644 index aa32b6d..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$id.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$layout.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$layout.class deleted file mode 100644 index b961fb0..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$layout.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$styleable.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$styleable.class deleted file mode 100644 index 8751b6b..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R$styleable.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R.class deleted file mode 100644 index 3838b80..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesign/R.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/BuildConfig.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/BuildConfig.class deleted file mode 100644 index 0b698bd..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/BuildConfig.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$anim.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$anim.class deleted file mode 100644 index a1b8b66..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$anim.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$attr.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$attr.class deleted file mode 100644 index a13e374..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$attr.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$color.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$color.class deleted file mode 100644 index 65ef0be..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$color.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$drawable.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$drawable.class deleted file mode 100644 index f704ab0..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$drawable.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$id.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$id.class deleted file mode 100644 index 89d432b..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$id.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$layout.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$layout.class deleted file mode 100644 index 94dd381..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$layout.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$string.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$string.class deleted file mode 100644 index 5123e3e..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$string.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$style.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$style.class deleted file mode 100644 index e2af66e..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$style.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$styleable.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$styleable.class deleted file mode 100644 index c456238..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R$styleable.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R.class deleted file mode 100644 index f16e637..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/R.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ButtonsActivity.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ButtonsActivity.class deleted file mode 100644 index 55121a6..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ButtonsActivity.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$1.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$1.class deleted file mode 100644 index 244bd0c..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$1.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$2.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$2.class deleted file mode 100644 index 22de2d3..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$2.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$3.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$3.class deleted file mode 100644 index 30be020..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$3.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$4.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$4.class deleted file mode 100644 index bb6c13d..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$4.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$5.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$5.class deleted file mode 100644 index 7d475a9..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity$5.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity.class deleted file mode 100644 index b22bf7e..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/MainActivity.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$1.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$1.class deleted file mode 100644 index 1358550..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$1.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$2.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$2.class deleted file mode 100644 index a3c68f6..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$2.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$3.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$3.class deleted file mode 100644 index 6d49f7e..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$3.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$4.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$4.class deleted file mode 100644 index 7ca1310..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity$4.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity.class deleted file mode 100644 index 4d4729d..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/ProgressActivity.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/SwitchActivity.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/SwitchActivity.class deleted file mode 100644 index c57a0dc..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/SwitchActivity.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1$1.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1$1.class deleted file mode 100644 index fb5e553..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1$1.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1.class deleted file mode 100644 index d45cca6..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$1.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$1.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$1.class deleted file mode 100644 index e03ed22..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$1.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$2.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$2.class deleted file mode 100644 index 49e6489..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2$2.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2.class deleted file mode 100644 index 38c4fb9..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$2.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$3.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$3.class deleted file mode 100644 index cbfe402..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity$3.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity.class b/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity.class deleted file mode 100644 index df629c2..0000000 Binary files a/MaterialDesignDemo/bin/classes/com/gc/materialdesigndemo/ui/WidgetActivity.class and /dev/null differ diff --git a/MaterialDesignDemo/bin/dexedLibs/android-support-v4-63a3eb07cf3a750697799e08620f0138.jar b/MaterialDesignDemo/bin/dexedLibs/android-support-v4-63a3eb07cf3a750697799e08620f0138.jar deleted file mode 100644 index 24f5c99..0000000 Binary files a/MaterialDesignDemo/bin/dexedLibs/android-support-v4-63a3eb07cf3a750697799e08620f0138.jar and /dev/null differ diff --git a/MaterialDesignDemo/bin/dexedLibs/materialdesign-1a73cd2c7c2ad84fdfeb3b3aae1603d7.jar b/MaterialDesignDemo/bin/dexedLibs/materialdesign-1a73cd2c7c2ad84fdfeb3b3aae1603d7.jar deleted file mode 100644 index 644c740..0000000 Binary files a/MaterialDesignDemo/bin/dexedLibs/materialdesign-1a73cd2c7c2ad84fdfeb3b3aae1603d7.jar and /dev/null differ diff --git a/MaterialDesignDemo/bin/jarlist.cache b/MaterialDesignDemo/bin/jarlist.cache deleted file mode 100644 index dedcf5e..0000000 --- a/MaterialDesignDemo/bin/jarlist.cache +++ /dev/null @@ -1,5 +0,0 @@ -# cache for current jar dependency. DO NOT EDIT. -# format is -# Encoding is UTF-8 -1417226200674 987314 9b6a9a9078af571732159b904ad423b03b7cc786 E:\java\MaterialDesignDemo\libs\android-support-v4.jar -1417226200529 987314 9b6a9a9078af571732159b904ad423b03b7cc786 E:\java\MaterialDesign\libs\android-support-v4.jar diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png b/MaterialDesignDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png deleted file mode 100644 index d8ec378..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png b/MaterialDesignDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png deleted file mode 100644 index d8ec378..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_action_new.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_action_new.png deleted file mode 100644 index cfd1edd..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_action_new.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index d8ec378..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_button.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_button.png deleted file mode 100644 index 6cb3bde..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_button.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_progress.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_progress.png deleted file mode 100644 index d74e706..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_progress.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_select_color.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_select_color.png deleted file mode 100644 index 957dcce..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_select_color.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_switch.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_switch.png deleted file mode 100644 index f3b84c4..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_switch.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_widget.png b/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_widget.png deleted file mode 100644 index 2cd2bf9..0000000 Binary files a/MaterialDesignDemo/bin/res/crunch/drawable-xhdpi/icn_widget.png and /dev/null differ diff --git a/MaterialDesignDemo/bin/resources.ap_ b/MaterialDesignDemo/bin/resources.ap_ deleted file mode 100644 index 1d6abec..0000000 Binary files a/MaterialDesignDemo/bin/resources.ap_ and /dev/null differ diff --git a/MaterialDesignDemo/build.gradle b/MaterialDesignDemo/build.gradle deleted file mode 100644 index eb008ad..0000000 --- a/MaterialDesignDemo/build.gradle +++ /dev/null @@ -1,36 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 19 - buildToolsVersion '20.0.0' - - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - - renderscript.srcDirs = ['src'] - - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - androidTest.setRoot('tests') - } - - defaultConfig { - applicationId 'com.gc.materialdesign' - minSdkVersion 8 - targetSdkVersion 21 - versionCode 1 - versionName '1.0' - } -} - -dependencies { - compile project(":MaterialDesign") - compile 'com.android.support:support-v4:21.+' -} - diff --git a/MaterialDesignDemo/gen/com/gc/materialdesign/R.java b/MaterialDesignDemo/gen/com/gc/materialdesign/R.java deleted file mode 100644 index c2659fe..0000000 --- a/MaterialDesignDemo/gen/com/gc/materialdesign/R.java +++ /dev/null @@ -1,105 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ -package com.gc.materialdesign; - -public final class R { - public static final class anim { - public static final int dialog_main_hide_amination = 0x7f040000; - public static final int dialog_main_show_amination = 0x7f040001; - public static final int dialog_root_hide_amin = 0x7f040002; - public static final int dialog_root_show_amin = 0x7f040003; - public static final int progress_indeterminate_animation = 0x7f040004; - public static final int snackbar_hide_animation = 0x7f040005; - public static final int snackbar_show_animation = 0x7f040006; - } - public static final class attr { - public static final int animate = 0x7f01000d; - public static final int checkBoxSize = 0x7f010009; - public static final int checked = 0x7f010008; - public static final int clickAfterRipple = 0x7f01000f; - public static final int iconDrawable = 0x7f01000b; - public static final int iconSize = 0x7f01000c; - public static final int max = 0x7f010003; - public static final int min = 0x7f010004; - public static final int progress = 0x7f010006; - public static final int ringWidth = 0x7f010007; - public static final int rippleBorderRadius = 0x7f01000e; - public static final int rippleColor = 0x7f010000; - public static final int rippleSpeed = 0x7f010001; - public static final int showNumberIndicator = 0x7f010002; - public static final int thumbSize = 0x7f01000a; - public static final int value = 0x7f010005; - } - public static final class color { - public static final int green = 0x7f050000; - public static final int thumbColor = 0x7f050001; - } - public static final class drawable { - public static final int background_button = 0x7f020000; - public static final int background_button_float = 0x7f020001; - public static final int background_button_rectangle = 0x7f020002; - public static final int background_checkbox = 0x7f020003; - public static final int background_checkbox_check = 0x7f020004; - public static final int background_checkbox_uncheck = 0x7f020005; - public static final int background_progress = 0x7f020006; - public static final int background_switch_ball_uncheck = 0x7f020007; - public static final int background_transparent = 0x7f020008; - public static final int dialog_background = 0x7f02000a; - public static final int float_button1_shadowp = 0x7f02000b; - public static final int float_button_shadow1 = 0x7f02000c; - public static final int ic_launcher = 0x7f02000e; - public static final int ic_reloj_max = 0x7f020010; - public static final int shadow_down = 0x7f020017; - public static final int shadow_right = 0x7f020018; - public static final int sprite_check = 0x7f020019; - } - public static final class id { - public static final int blue = 0x7f080019; - public static final int button_accept = 0x7f080020; - public static final int button_cancel = 0x7f08001f; - public static final int buttonflat = 0x7f080000; - public static final int contentDialog = 0x7f08001b; - public static final int contentSelector = 0x7f080015; - public static final int dialog_rootView = 0x7f08001a; - public static final int green = 0x7f080018; - public static final int message = 0x7f08001e; - public static final int message_scrollView = 0x7f08001d; - public static final int number_indicator_spinner_content = 0x7f080021; - public static final int red = 0x7f080017; - public static final int rootSelector = 0x7f080014; - public static final int shape_bacground = 0x7f080024; - public static final int snackbar = 0x7f080022; - public static final int text = 0x7f080023; - public static final int title = 0x7f08001c; - public static final int viewColor = 0x7f080016; - } - public static final class layout { - public static final int color_selector = 0x7f030005; - public static final int dialog = 0x7f030006; - public static final int number_indicator_spinner = 0x7f030007; - public static final int snackbar = 0x7f030008; - } - public static final class styleable { - public static final int[] CustomAttributes = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f }; - public static final int CustomAttributes_animate = 13; - public static final int CustomAttributes_checkBoxSize = 9; - public static final int CustomAttributes_checked = 8; - public static final int CustomAttributes_clickAfterRipple = 15; - public static final int CustomAttributes_iconDrawable = 11; - public static final int CustomAttributes_iconSize = 12; - public static final int CustomAttributes_max = 3; - public static final int CustomAttributes_min = 4; - public static final int CustomAttributes_progress = 6; - public static final int CustomAttributes_ringWidth = 7; - public static final int CustomAttributes_rippleBorderRadius = 14; - public static final int CustomAttributes_rippleColor = 0; - public static final int CustomAttributes_rippleSpeed = 1; - public static final int CustomAttributes_showNumberIndicator = 2; - public static final int CustomAttributes_thumbSize = 10; - public static final int CustomAttributes_value = 5; - } -} diff --git a/MaterialDesignDemo/gen/com/gc/materialdesigndemo/BuildConfig.java b/MaterialDesignDemo/gen/com/gc/materialdesigndemo/BuildConfig.java deleted file mode 100644 index 49c03b3..0000000 --- a/MaterialDesignDemo/gen/com/gc/materialdesigndemo/BuildConfig.java +++ /dev/null @@ -1,6 +0,0 @@ -/** Automatically generated file. DO NOT MODIFY */ -package com.gc.materialdesigndemo; - -public final class BuildConfig { - public final static boolean DEBUG = true; -} \ No newline at end of file diff --git a/MaterialDesignDemo/gen/com/gc/materialdesigndemo/R.java b/MaterialDesignDemo/gen/com/gc/materialdesigndemo/R.java deleted file mode 100644 index 6003ff5..0000000 --- a/MaterialDesignDemo/gen/com/gc/materialdesigndemo/R.java +++ /dev/null @@ -1,587 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package com.gc.materialdesigndemo; - -public final class R { - public static final class anim { - public static final int dialog_main_hide_amination=0x7f040000; - public static final int dialog_main_show_amination=0x7f040001; - public static final int dialog_root_hide_amin=0x7f040002; - public static final int dialog_root_show_amin=0x7f040003; - public static final int progress_indeterminate_animation=0x7f040004; - public static final int snackbar_hide_animation=0x7f040005; - public static final int snackbar_show_animation=0x7f040006; - } - public static final class attr { - /** in float button indicate if must start with animation -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int animate=0x7f01000d; - /**

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int checkBoxSize=0x7f010009; - /** in switche's view indicate state of view -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int checked=0x7f010008; - /** if true, delays calls to OnClickListeners until ripple effect ends -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int clickAfterRipple=0x7f01000f; - /** in float button indicate icon resource -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int iconDrawable=0x7f01000b; - /** in button whitch contains drawable indicate icon resource -

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int iconSize=0x7f01000c; - /** in progress view indicate max value of progress -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int max=0x7f010003; - /** in progress view indicate min value of progress -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int min=0x7f010004; - /** in progress view indicate value of progress -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int progress=0x7f010006; - /**

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int ringWidth=0x7f010007; - /** set the border of the ripple frame -

Must be a floating point value, such as "1.2". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int rippleBorderRadius=0x7f01000e; - /** Color of ripple animation -

May be a reference to another resource, in the form "@[+][package:]type:name" -or to a theme attribute in the form "?[package:][type:]name". -

May be a color value, in the form of "#rgb", "#argb", -"#rrggbb", or "#aarrggbb". - */ - public static final int rippleColor=0x7f010000; - /** Speed of ripple animation -

Must be a floating point value, such as "1.2". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int rippleSpeed=0x7f010001; - /** indicate if the slider must show number indicator -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int showNumberIndicator=0x7f010002; - /**

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int thumbSize=0x7f01000a; - /** in progress view indicate value of progress -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - */ - public static final int value=0x7f010005; - } - public static final class color { - public static final int green=0x7f050000; - public static final int thumbColor=0x7f050001; - } - public static final class drawable { - public static final int background_button=0x7f020000; - public static final int background_button_float=0x7f020001; - public static final int background_button_rectangle=0x7f020002; - public static final int background_checkbox=0x7f020003; - public static final int background_checkbox_check=0x7f020004; - public static final int background_checkbox_uncheck=0x7f020005; - public static final int background_progress=0x7f020006; - public static final int background_switch_ball_uncheck=0x7f020007; - public static final int background_transparent=0x7f020008; - public static final int blue_background=0x7f020009; - public static final int dialog_background=0x7f02000a; - public static final int float_button1_shadowp=0x7f02000b; - public static final int float_button_shadow1=0x7f02000c; - public static final int ic_action_new=0x7f02000d; - public static final int ic_launcher=0x7f02000e; - public static final int ic_next=0x7f02000f; - public static final int ic_reloj_max=0x7f020010; - public static final int icn_button=0x7f020011; - public static final int icn_progress=0x7f020012; - public static final int icn_select_color=0x7f020013; - public static final int icn_switch=0x7f020014; - public static final int icn_widget=0x7f020015; - public static final int selector_list=0x7f020016; - public static final int shadow_down=0x7f020017; - public static final int shadow_right=0x7f020018; - public static final int sprite_check=0x7f020019; - public static final int transparent_backgrouns=0x7f02001a; - } - public static final class id { - public static final int blue=0x7f080019; - public static final int button=0x7f080001; - public static final int buttonColorSelector=0x7f080005; - public static final int buttonDialog=0x7f080013; - public static final int buttonFloat=0x7f080004; - public static final int buttonFloatSmall=0x7f080002; - public static final int buttonIcon=0x7f080003; - public static final int buttonSnackBar=0x7f080012; - public static final int button_accept=0x7f080020; - public static final int button_cancel=0x7f08001f; - public static final int buttonflat=0x7f080000; - public static final int checkBox=0x7f080010; - public static final int contentDialog=0x7f08001b; - public static final int contentSelector=0x7f080015; - public static final int dialog_rootView=0x7f08001a; - public static final int green=0x7f080018; - public static final int itemButtons=0x7f080006; - public static final int itemProgress=0x7f080008; - public static final int itemSwitches=0x7f080007; - public static final int itemWidgets=0x7f080009; - public static final int message=0x7f08001e; - public static final int message_scrollView=0x7f08001d; - public static final int number_indicator_spinner_content=0x7f080021; - public static final int progressBarCircularIndetermininate=0x7f08000a; - public static final int progressBarIndeterminate=0x7f08000b; - public static final int progressBarIndeterminateDeterminate=0x7f08000c; - public static final int progressDeterminate=0x7f08000d; - public static final int red=0x7f080017; - public static final int rootSelector=0x7f080014; - public static final int shape_bacground=0x7f080024; - public static final int slider=0x7f08000e; - public static final int sliderNumber=0x7f08000f; - public static final int snackbar=0x7f080022; - public static final int switchView=0x7f080011; - public static final int text=0x7f080023; - public static final int title=0x7f08001c; - public static final int viewColor=0x7f080016; - } - public static final class layout { - public static final int activity_buttons=0x7f030000; - public static final int activity_main=0x7f030001; - public static final int activity_progress=0x7f030002; - public static final int activity_switchs=0x7f030003; - public static final int activity_widgets=0x7f030004; - public static final int color_selector=0x7f030005; - public static final int dialog=0x7f030006; - public static final int number_indicator_spinner=0x7f030007; - public static final int snackbar=0x7f030008; - } - public static final class string { - public static final int app_name=0x7f060000; - } - public static final class style { - /** - Base application theme, dependent on API level. This theme is replaced - by AppBaseTheme from res/values-vXX/styles.xml on newer devices. - - - Theme customizations available in newer API levels can go in - res/values-vXX/styles.xml, while customizations related to - backward-compatibility can go here. - - - Base application theme for API 11+. This theme completely replaces - AppBaseTheme from res/values/styles.xml on API 11+ devices. - - API 11 theme customizations can go here. - - Base application theme for API 14+. This theme completely replaces - AppBaseTheme from BOTH res/values/styles.xml and - res/values-v11/styles.xml on API 14+ devices. - - API 14 theme customizations can go here. - */ - public static final int AppBaseTheme=0x7f070000; - /** Application theme. - All customizations that are NOT specific to a particular API-level can go here. - */ - public static final int AppTheme=0x7f070001; - } - public static final class styleable { - /** Attributes that can be used with a CustomAttributes. -

Includes the following attributes:

- - - - - - - - - - - - - - - - - - - - -
AttributeDescription
{@link #CustomAttributes_animate com.gc.materialdesigndemo:animate} in float button indicate if must start with animation
{@link #CustomAttributes_checkBoxSize com.gc.materialdesigndemo:checkBoxSize}
{@link #CustomAttributes_checked com.gc.materialdesigndemo:checked} in switche's view indicate state of view
{@link #CustomAttributes_clickAfterRipple com.gc.materialdesigndemo:clickAfterRipple} if true, delays calls to OnClickListeners until ripple effect ends
{@link #CustomAttributes_iconDrawable com.gc.materialdesigndemo:iconDrawable} in float button indicate icon resource
{@link #CustomAttributes_iconSize com.gc.materialdesigndemo:iconSize} in button whitch contains drawable indicate icon resource
{@link #CustomAttributes_max com.gc.materialdesigndemo:max} in progress view indicate max value of progress
{@link #CustomAttributes_min com.gc.materialdesigndemo:min} in progress view indicate min value of progress
{@link #CustomAttributes_progress com.gc.materialdesigndemo:progress} in progress view indicate value of progress
{@link #CustomAttributes_ringWidth com.gc.materialdesigndemo:ringWidth}
{@link #CustomAttributes_rippleBorderRadius com.gc.materialdesigndemo:rippleBorderRadius} set the border of the ripple frame
{@link #CustomAttributes_rippleColor com.gc.materialdesigndemo:rippleColor} Color of ripple animation
{@link #CustomAttributes_rippleSpeed com.gc.materialdesigndemo:rippleSpeed} Speed of ripple animation
{@link #CustomAttributes_showNumberIndicator com.gc.materialdesigndemo:showNumberIndicator} indicate if the slider must show number indicator
{@link #CustomAttributes_thumbSize com.gc.materialdesigndemo:thumbSize}
{@link #CustomAttributes_value com.gc.materialdesigndemo:value} in progress view indicate value of progress
- @see #CustomAttributes_animate - @see #CustomAttributes_checkBoxSize - @see #CustomAttributes_checked - @see #CustomAttributes_clickAfterRipple - @see #CustomAttributes_iconDrawable - @see #CustomAttributes_iconSize - @see #CustomAttributes_max - @see #CustomAttributes_min - @see #CustomAttributes_progress - @see #CustomAttributes_ringWidth - @see #CustomAttributes_rippleBorderRadius - @see #CustomAttributes_rippleColor - @see #CustomAttributes_rippleSpeed - @see #CustomAttributes_showNumberIndicator - @see #CustomAttributes_thumbSize - @see #CustomAttributes_value - */ - public static final int[] CustomAttributes = { - 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, - 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, - 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, - 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f - }; - /** -

- @attr description - in float button indicate if must start with animation - - -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:animate - */ - public static final int CustomAttributes_animate = 13; - /** -

This symbol is the offset where the {@link com.gc.materialdesigndemo.R.attr#checkBoxSize} - attribute's value can be found in the {@link #CustomAttributes} array. - - -

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - @attr name com.gc.materialdesigndemo:checkBoxSize - */ - public static final int CustomAttributes_checkBoxSize = 9; - /** -

- @attr description - in switche's view indicate state of view - - -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:checked - */ - public static final int CustomAttributes_checked = 8; - /** -

- @attr description - if true, delays calls to OnClickListeners until ripple effect ends - - -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:clickAfterRipple - */ - public static final int CustomAttributes_clickAfterRipple = 15; - /** -

- @attr description - in float button indicate icon resource - - -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:iconDrawable - */ - public static final int CustomAttributes_iconDrawable = 11; - /** -

- @attr description - in button whitch contains drawable indicate icon resource - - -

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:iconSize - */ - public static final int CustomAttributes_iconSize = 12; - /** -

- @attr description - in progress view indicate max value of progress - - -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:max - */ - public static final int CustomAttributes_max = 3; - /** -

- @attr description - in progress view indicate min value of progress - - -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:min - */ - public static final int CustomAttributes_min = 4; - /** -

- @attr description - in progress view indicate value of progress - - -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:progress - */ - public static final int CustomAttributes_progress = 6; - /** -

This symbol is the offset where the {@link com.gc.materialdesigndemo.R.attr#ringWidth} - attribute's value can be found in the {@link #CustomAttributes} array. - - -

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - @attr name com.gc.materialdesigndemo:ringWidth - */ - public static final int CustomAttributes_ringWidth = 7; - /** -

- @attr description - set the border of the ripple frame - - -

Must be a floating point value, such as "1.2". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:rippleBorderRadius - */ - public static final int CustomAttributes_rippleBorderRadius = 14; - /** -

- @attr description - Color of ripple animation - - -

May be a reference to another resource, in the form "@[+][package:]type:name" -or to a theme attribute in the form "?[package:][type:]name". -

May be a color value, in the form of "#rgb", "#argb", -"#rrggbb", or "#aarrggbb". -

This is a private symbol. - @attr name com.gc.materialdesigndemo:rippleColor - */ - public static final int CustomAttributes_rippleColor = 0; - /** -

- @attr description - Speed of ripple animation - - -

Must be a floating point value, such as "1.2". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:rippleSpeed - */ - public static final int CustomAttributes_rippleSpeed = 1; - /** -

- @attr description - indicate if the slider must show number indicator - - -

Must be a boolean value, either "true" or "false". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:showNumberIndicator - */ - public static final int CustomAttributes_showNumberIndicator = 2; - /** -

This symbol is the offset where the {@link com.gc.materialdesigndemo.R.attr#thumbSize} - attribute's value can be found in the {@link #CustomAttributes} array. - - -

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". -Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), -in (inches), mm (millimeters). -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. - @attr name com.gc.materialdesigndemo:thumbSize - */ - public static final int CustomAttributes_thumbSize = 10; - /** -

- @attr description - in progress view indicate value of progress - - -

Must be an integer value, such as "100". -

This may also be a reference to a resource (in the form -"@[package:]type:name") or -theme attribute (in the form -"?[package:][type:]name") -containing a value of this type. -

This is a private symbol. - @attr name com.gc.materialdesigndemo:value - */ - public static final int CustomAttributes_value = 5; - }; -} diff --git a/MaterialDesignDemo/gradle.properties b/MaterialDesignDemo/gradle.properties deleted file mode 100644 index 58b41f9..0000000 --- a/MaterialDesignDemo/gradle.properties +++ /dev/null @@ -1,4 +0,0 @@ -POM_NAME=MaterialDesignDemo -POM_ARTIFACT_ID=material-design-library-demo -POM_PACKAGING=aar - diff --git a/MaterialDesignDemo/libs/android-support-v4.jar b/MaterialDesignDemo/libs/android-support-v4.jar deleted file mode 100644 index ac4181f..0000000 Binary files a/MaterialDesignDemo/libs/android-support-v4.jar and /dev/null differ diff --git a/MaterialDesignDemo/project.properties b/MaterialDesignDemo/project.properties deleted file mode 100644 index ae4fe68..0000000 --- a/MaterialDesignDemo/project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-19 -android.library.reference.1=../MaterialDesign diff --git a/MaterialDesignDemo/res/values-v11/styles.xml b/MaterialDesignDemo/res/values-v11/styles.xml deleted file mode 100644 index 3c02242..0000000 --- a/MaterialDesignDemo/res/values-v11/styles.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - diff --git a/MaterialDesignDemo/res/values-v14/styles.xml b/MaterialDesignDemo/res/values-v14/styles.xml deleted file mode 100644 index a91fd03..0000000 --- a/MaterialDesignDemo/res/values-v14/styles.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - diff --git a/MaterialDesignLibrary/.gitignore b/MaterialDesignLibrary/.gitignore new file mode 100644 index 0000000..9c4de58 --- /dev/null +++ b/MaterialDesignLibrary/.gitignore @@ -0,0 +1,7 @@ +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures diff --git a/MaterialDesignLibrary/MaterialDesign/.gitignore b/MaterialDesignLibrary/MaterialDesign/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/.gitignore @@ -0,0 +1 @@ +/build diff --git a/MaterialDesignLibrary/MaterialDesign/build.gradle b/MaterialDesignLibrary/MaterialDesign/build.gradle new file mode 100644 index 0000000..8d96c04 --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/build.gradle @@ -0,0 +1,107 @@ +apply plugin: 'com.android.library' +// COMMENT TO DEVELOPER MODE / UNCOMMENT TO UPLOAD TO BINTARRAY +//apply plugin: 'com.github.dcendents.android-maven' +//apply plugin: 'com.jfrog.bintray' + +android { + compileSdkVersion 22 + buildToolsVersion "22.0.1" + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile 'com.nineoldandroids:library:2.4.+' + compile 'com.android.support:support-v4:22.+' + compile fileTree(dir: 'libs', include: '*.jar') +} + +// COMMENT TO DEVELOPER MODE / UNCOMMENT TO UPLOAD TO BINTARRAY + +//ext.siteUrl = 'https://github.com/navasmdc/MaterialDesignLibrary' +//ext.issueUrl = 'https://github.com/navasmdc/MaterialDesignLibrary/issues' +//ext.gitUrl = 'https://github.com/navasmdc/MaterialDesignLibrary.git' +// +//bintray { +// user = hasProperty('BINTRAY_USER') ? BINTRAY_USER : "navasmdc" +// key = hasProperty('BINTRAY_KEY') ? BINTRAY_PASSWORD : "" +// +// configurations = ["archives"] +// pkg { +// repo = 'maven' +// name = 'MaterialDesignLibrary' +// desc = 'This is a library with components of Android L to you use in android 2.2' +// websiteUrl = siteUrl +// issueTrackerUrl = issueUrl +// vcsUrl = gitUrl +// licenses = ['Apache-2.0'] +// labels = [] +// publicDownloadNumbers = true +// } +//} + +//install { +// repositories.mavenInstaller { +// pom { +// project { +// packaging 'aar' +// name 'MaterialDesignLibrary' +// url siteUrl +// licenses { +// license { +// name 'The Apache Software License, Version 2.0' +// url 'http://www.apache.org/licenses/LICENSE-2.0.txt' +// } +// } +// developers { +// developer { +// id 'navasmdc' +// name 'Iván Navas' +// email 'i.navas.mdc@gmail.com' +// } +// } +// scm { +// connection gitUrl +// developerConnection gitUrl +// url siteUrl +// } +// } +// } +// } +//} +// +//task sourcesJar(type: Jar) { +// from android.sourceSets.main.java.srcDirs +// classifier = 'sources' +//} +// +//task javadoc(type: Javadoc) { +// source = android.sourceSets.main.java.srcDirs +// classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) +//} +// +//task javadocJar(type: Jar, dependsOn: javadoc) { +// classifier = 'javadoc' +// from javadoc.destinationDir +//} +// +//artifacts { +// archives javadocJar +// archives sourcesJar +//} +// +//task findConventions << { +// println project.getConvention() +//} + diff --git a/MaterialDesign/gradle.properties b/MaterialDesignLibrary/MaterialDesign/gradle.properties similarity index 100% rename from MaterialDesign/gradle.properties rename to MaterialDesignLibrary/MaterialDesign/gradle.properties diff --git a/MaterialDesign/proguard-project.txt b/MaterialDesignLibrary/MaterialDesign/proguard-rules.pro similarity index 62% rename from MaterialDesign/proguard-project.txt rename to MaterialDesignLibrary/MaterialDesign/proguard-rules.pro index f2fe155..2589703 100644 --- a/MaterialDesign/proguard-project.txt +++ b/MaterialDesignLibrary/MaterialDesign/proguard-rules.pro @@ -1,11 +1,8 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. +# in /Applications/adt-bundle-mac-x86_64-20140321/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 diff --git a/MaterialDesignLibrary/MaterialDesign/src/androidTest/java/com/gc/materialdesign/ApplicationTest.java b/MaterialDesignLibrary/MaterialDesign/src/androidTest/java/com/gc/materialdesign/ApplicationTest.java new file mode 100644 index 0000000..09e0245 --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/src/androidTest/java/com/gc/materialdesign/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.gc.materialdesign; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/MaterialDesignLibrary/MaterialDesign/src/main/AndroidManifest.xml b/MaterialDesignLibrary/MaterialDesign/src/main/AndroidManifest.xml new file mode 100644 index 0000000..93820b9 --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/src/main/AndroidManifest.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/MaterialDesign/src/com/gc/materialdesign/utils/Utils.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/utils/Utils.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/utils/Utils.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/utils/Utils.java diff --git a/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/AutoHideButtonFloat.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/AutoHideButtonFloat.java new file mode 100644 index 0000000..5b37eb4 --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/AutoHideButtonFloat.java @@ -0,0 +1,72 @@ +package com.gc.materialdesign.views; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.View; +import android.widget.AbsListView; +import android.widget.ListView; + +import com.gc.materialdesign.views.ButtonFloat; +import com.nineoldandroids.view.ViewPropertyAnimator; + +/** + * Created by hamedpc on 4/25/2015. + * This widget uses NineOldAndroid to animate the view so you're gonna need to include it in your project + */ +public class AutoHideButtonFloat extends ButtonFloat implements AbsListView.OnScrollListener { + ListView listView; + private boolean floatHiding = false, floatShowing = false; + private int mLastFirstVisibleItem; + private View view = this; + private AbsListView.OnScrollListener onScrollListener; + + public AutoHideButtonFloat(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) { + this.onScrollListener = onScrollListener; + } + + public void setListView(ListView listView) { + this.listView = listView; + this.listView.setOnScrollListener(this); + } + + @Override + public void onScrollStateChanged(AbsListView absListView, int scrollState) { + switch (scrollState) { + case AbsListView.SCROLL_AXIS_NONE: + floatHiding = false; + floatShowing = false; + ViewPropertyAnimator.animate(view).translationY(0).setDuration(300); + break; + } + if (onScrollListener != null) + onScrollListener.onScrollStateChanged(absListView, scrollState); + } + + @Override + public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) { + + if (mLastFirstVisibleItem < firstVisibleItem) { + if (floatShowing) floatShowing = false; + if (!floatHiding) { + ViewPropertyAnimator.animate(view).translationY(500).setDuration(300); + floatHiding = true; + } + } + if (mLastFirstVisibleItem > firstVisibleItem) { + if (floatHiding) { + floatHiding = false; + } + if (!floatShowing) { + ViewPropertyAnimator.animate(view).translationY(0).setDuration(300); + floatShowing = true; + } + } + mLastFirstVisibleItem = firstVisibleItem; + if (onScrollListener != null) + onScrollListener.onScroll(absListView, firstVisibleItem, visibleItemCount, totalItemCount); + } +} diff --git a/MaterialDesign/src/com/gc/materialdesign/views/Button.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Button.java similarity index 88% rename from MaterialDesign/src/com/gc/materialdesign/views/Button.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Button.java index 9b4c64a..db24638 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/Button.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Button.java @@ -30,15 +30,17 @@ public abstract class Button extends CustomView { OnClickListener onClickListener; boolean clickAfterRipple = true; int backgroundColor = Color.parseColor("#1E88E5"); + TextView textButton; public Button(Context context, AttributeSet attrs) { super(context, attrs); setDefaultProperties(); - clickAfterRipple = attrs.getAttributeBooleanValue(MATERIALDESIGNXML,"animate", true); + clickAfterRipple = attrs.getAttributeBooleanValue(MATERIALDESIGNXML, + "animate", true); setAttributes(attrs); beforeBackground = backgroundColor; - if(rippleColor==null) - rippleColor = makePressColor(); + if (rippleColor == null) + rippleColor = makePressColor(); } protected void setDefaultProperties() { @@ -49,7 +51,6 @@ protected void setDefaultProperties() { setBackgroundResource(background); setBackgroundColor(backgroundColor); } - // Set atributtes of XML to View abstract protected void setAttributes(AttributeSet attrs); @@ -82,7 +83,7 @@ public boolean onTouchEvent(MotionEvent event) { if ((event.getX() <= getWidth() && event.getX() >= 0) && (event.getY() <= getHeight() && event.getY() >= 0)) { radius++; - if(!clickAfterRipple && onClickListener != null){ + if (!clickAfterRipple && onClickListener != null) { onClickListener.onClick(this); } } else { @@ -90,10 +91,10 @@ public boolean onTouchEvent(MotionEvent event) { x = -1; y = -1; } - }else if (event.getAction() == MotionEvent.ACTION_CANCEL) { - isLastTouch = false; - x = -1; - y = -1; + } else if (event.getAction() == MotionEvent.ACTION_CANCEL) { + isLastTouch = false; + x = -1; + y = -1; } } return true; @@ -130,7 +131,7 @@ public Bitmap makeCircle() { x = -1; y = -1; radius = getHeight() / rippleSize; - if (onClickListener != null&& clickAfterRipple) + if (onClickListener != null && clickAfterRipple) onClickListener.onClick(this); } return output; @@ -172,8 +173,6 @@ public void setBackgroundColor(int color) { } } - abstract public TextView getTextView(); - public void setRippleSpeed(float rippleSpeed) { this.rippleSpeed = rippleSpeed; } @@ -181,4 +180,20 @@ public void setRippleSpeed(float rippleSpeed) { public float getRippleSpeed() { return this.rippleSpeed; } + + public void setText(String text) { + textButton.setText(text); + } + + public void setTextColor(int color) { + textButton.setTextColor(color); + } + + public TextView getTextView() { + return textButton; + } + + public String getText() { + return textButton.getText().toString(); + } } diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ButtonFlat.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFlat.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/ButtonFlat.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFlat.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ButtonFloat.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloat.java similarity index 95% rename from MaterialDesign/src/com/gc/materialdesign/views/ButtonFloat.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloat.java index ff1b81a..b4970b9 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ButtonFloat.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloat.java @@ -16,6 +16,8 @@ import android.graphics.Rect; import android.graphics.Bitmap.Config; import android.graphics.drawable.Drawable; +import android.graphics.drawable.GradientDrawable; +import android.graphics.drawable.LayerDrawable; import android.util.AttributeSet; import android.view.animation.BounceInterpolator; import android.widget.ImageView; @@ -43,6 +45,7 @@ public class ButtonFloat extends Button{ public ButtonFloat(Context context, AttributeSet attrs) { super(context, attrs); setBackgroundResource(R.drawable.background_button_float); + setBackgroundColor(backgroundColor); sizeRadius = 28; setDefaultProperties(); icon = new ImageView(context); @@ -51,7 +54,7 @@ public ButtonFloat(Context context, AttributeSet attrs) { if(drawableIcon != null) { icon.setImageDrawable(drawableIcon); } - RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(Utils.dpToPx(sizeIcon, getResources()),Utils.dpToPx(sizeIcon, getResources())); + LayoutParams params = new LayoutParams(Utils.dpToPx(sizeIcon, getResources()),Utils.dpToPx(sizeIcon, getResources())); params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE); icon.setLayoutParams(params); addView(icon); @@ -202,4 +205,5 @@ public void hide(){ public boolean isShow(){ return isShow; } + } diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ButtonFloatSmall.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloatSmall.java similarity index 85% rename from MaterialDesign/src/com/gc/materialdesign/views/ButtonFloatSmall.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloatSmall.java index d85681d..866f206 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ButtonFloatSmall.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonFloatSmall.java @@ -14,7 +14,7 @@ public ButtonFloatSmall(Context context, AttributeSet attrs) { sizeRadius = 20; sizeIcon = 20; setDefaultProperties(); - RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(Utils.dpToPx(sizeIcon, getResources()),Utils.dpToPx(sizeIcon, getResources())); + LayoutParams params = new LayoutParams(Utils.dpToPx(sizeIcon, getResources()),Utils.dpToPx(sizeIcon, getResources())); params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE); icon.setLayoutParams(params); } diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ButtonIcon.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonIcon.java similarity index 92% rename from MaterialDesign/src/com/gc/materialdesign/views/ButtonIcon.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonIcon.java index 7779b01..db57730 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ButtonIcon.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonIcon.java @@ -16,9 +16,9 @@ public class ButtonIcon extends ButtonFloat { public ButtonIcon(Context context, AttributeSet attrs) { super(context, attrs); try { - setBackground(new ColorDrawable(getResources().getColor(android.R.color.transparent))); + setBackground(new ColorDrawable(getResources().getColor(R.color.transparent))); } catch (NoSuchMethodError e) { - setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.transparent))); + setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.transparent))); } rippleSpeed = Utils.dpToPx(2, getResources()); rippleSize = Utils.dpToPx(5, getResources()); diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ButtonRectangle.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonRectangle.java similarity index 85% rename from MaterialDesign/src/com/gc/materialdesign/views/ButtonRectangle.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonRectangle.java index b60ad8a..e261c7d 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ButtonRectangle.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ButtonRectangle.java @@ -4,6 +4,7 @@ import com.gc.materialdesign.utils.Utils; import android.content.Context; +import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Rect; @@ -85,7 +86,7 @@ protected void setAttributes(AttributeSet attrs){ textButton.setText(text); textButton.setTextColor(Color.WHITE); textButton.setTypeface(null, Typeface.BOLD); - RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); + LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE); params.setMargins(Utils.dpToPx(5, getResources()), Utils.dpToPx(5, getResources()), Utils.dpToPx(5, getResources()), Utils.dpToPx(5, getResources())); textButton.setLayoutParams(params); @@ -94,7 +95,23 @@ protected void setAttributes(AttributeSet attrs){ // params.width = getWidth(); // params.gravity = Gravity.CENTER_HORIZONTAL; //// params.setMargins(paddingLeft, paddingTop, paddingRight, paddingRight); -// textView.setLayoutParams(params); +// textView.setLayoutParams(params);textColor + int textColor = attrs.getAttributeResourceValue(ANDROIDXML,"textColor",-1); + if(textColor != -1){ + textButton.setTextColor(textColor); + }else{ + // Color by hexadecimal + // Color by hexadecimal + textColor = attrs.getAttributeIntValue(ANDROIDXML, "textColor", -1); + if (textColor != -1) + textButton.setTextColor(textColor); + } + int[] array = {android.R.attr.textSize}; + TypedArray values = getContext().obtainStyledAttributes(attrs, array); + float textSize = values.getDimension(0, -1); + values.recycle(); + if(textSize != -1) + textButton.setTextSize(textSize); } @@ -130,20 +147,4 @@ protected void onDraw(Canvas canvas) { } } - public void setText(String text){ - textButton.setText(text); - } - - public void setTextColor(int color){ - textButton.setTextColor(color); - } - @Override - public TextView getTextView() { - return textButton; - } - - public String getText(){ - return textButton.getText().toString(); - } - } diff --git a/MaterialDesign/src/com/gc/materialdesign/views/Card.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Card.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/Card.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Card.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/CheckBox.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java similarity index 98% rename from MaterialDesign/src/com/gc/materialdesign/views/CheckBox.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java index ffadf43..27b41de 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/CheckBox.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CheckBox.java @@ -128,7 +128,7 @@ public boolean onTouchEvent(MotionEvent event) { isLastTouch = false; check = !check; if (onCheckListener != null) - onCheckListener.onCheck(check); + onCheckListener.onCheck(CheckBox.this, check); if (check) { step = 0; } @@ -261,7 +261,7 @@ public void setOncheckListener(OnCheckListener onCheckListener) { } public interface OnCheckListener { - public void onCheck(boolean check); + public void onCheck(CheckBox view, boolean check); } } diff --git a/MaterialDesign/src/com/gc/materialdesign/views/CustomView.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CustomView.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/CustomView.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/CustomView.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/LayoutRipple.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/LayoutRipple.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/LayoutRipple.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/LayoutRipple.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarCircularIndeterminate.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarCircularIndeterminate.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/ProgressBarCircularIndeterminate.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarCircularIndeterminate.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarDeterminate.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarDeterminate.java similarity index 93% rename from MaterialDesign/src/com/gc/materialdesign/views/ProgressBarDeterminate.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarDeterminate.java index c227426..8001191 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarDeterminate.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarDeterminate.java @@ -33,7 +33,7 @@ public ProgressBarDeterminate(Context context, AttributeSet attrs) { protected void setAttributes(AttributeSet attrs){ progressView = new View(getContext()); - RelativeLayout.LayoutParams params = new LayoutParams(1,1); + LayoutParams params = new LayoutParams(1,1); progressView.setLayoutParams(params); progressView.setBackgroundResource(R.drawable.background_progress); addView(progressView); @@ -62,7 +62,7 @@ protected void setAttributes(AttributeSet attrs){ @Override public void run() { - RelativeLayout.LayoutParams params = (LayoutParams) progressView.getLayoutParams(); + LayoutParams params = (LayoutParams) progressView.getLayoutParams(); params.height = getHeight(); progressView.setLayoutParams(params); } @@ -111,7 +111,7 @@ public void setProgress(int progress){ int totalWidth = max-min; double progressPercent = (double)progress/(double)totalWidth; int progressWidth =(int) (getWidth()*progressPercent); - RelativeLayout.LayoutParams params = (LayoutParams) progressView.getLayoutParams(); + LayoutParams params = (LayoutParams) progressView.getLayoutParams(); params.width = progressWidth; params.height = getHeight(); progressView.setLayoutParams(params); diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminate.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminate.java similarity index 96% rename from MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminate.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminate.java index 594927d..029903a 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminate.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminate.java @@ -41,7 +41,7 @@ public void onAnimationEnd(Animator arg0) { anim2Repeat.setDuration(duration/cont); anim2Repeat.addListener(this); anim2Repeat.start(); - } catch (java.lang.ArrayIndexOutOfBoundsException e) { + } catch (ArrayIndexOutOfBoundsException e) { // ignore this error that sometimes comes from the NineOldAndroids 2.4 library } if(cont == 3 || cont == 1) suma *=-1; diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ProgressBarIndeterminateDeterminate.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/ScrollView.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ScrollView.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/views/ScrollView.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/ScrollView.java diff --git a/MaterialDesign/src/com/gc/materialdesign/views/Slider.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Slider.java similarity index 99% rename from MaterialDesign/src/com/gc/materialdesign/views/Slider.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Slider.java index 70cad43..9fc435b 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/Slider.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Slider.java @@ -354,7 +354,7 @@ protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (numberIndicatorResize == false) { - RelativeLayout.LayoutParams params = (LayoutParams) numberIndicator.numberIndicator + LayoutParams params = (LayoutParams) numberIndicator.numberIndicator .getLayoutParams(); params.height = (int) finalSize * 2; params.width = (int) finalSize * 2; diff --git a/MaterialDesign/src/com/gc/materialdesign/views/Switch.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Switch.java similarity index 98% rename from MaterialDesign/src/com/gc/materialdesign/views/Switch.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Switch.java index 0a1a8b9..fe6be3e 100644 --- a/MaterialDesign/src/com/gc/materialdesign/views/Switch.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/views/Switch.java @@ -109,7 +109,7 @@ public boolean onTouchEvent(MotionEvent event) { if (eventCheck != check) { check = eventCheck; if (onCheckListener != null) - onCheckListener.onCheck(check); + onCheckListener.onCheck(Switch.this,check); } if ((event.getX() <= getWidth() && event.getX() >= 0)) { ball.animateCheck(); @@ -249,7 +249,7 @@ public void setOncheckListener(OnCheckListener onCheckListener) { } public interface OnCheckListener { - public void onCheck(boolean check); + public void onCheck(Switch view, boolean check); } } diff --git a/MaterialDesign/src/com/gc/materialdesign/widgets/ColorSelector.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/ColorSelector.java similarity index 98% rename from MaterialDesign/src/com/gc/materialdesign/widgets/ColorSelector.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/ColorSelector.java index dd15571..fbd6c3f 100644 --- a/MaterialDesign/src/com/gc/materialdesign/widgets/ColorSelector.java +++ b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/ColorSelector.java @@ -75,7 +75,7 @@ public boolean onTouch(View v, MotionEvent event) { @Override public void run() { - LinearLayout.LayoutParams params = (LayoutParams) colorView.getLayoutParams(); + LayoutParams params = (LayoutParams) colorView.getLayoutParams(); params.height = colorView.getWidth(); colorView.setLayoutParams(params); } diff --git a/MaterialDesign/src/com/gc/materialdesign/widgets/Dialog.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/Dialog.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/widgets/Dialog.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/Dialog.java diff --git a/MaterialDesign/src/com/gc/materialdesign/widgets/ProgressDialog.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/ProgressDialog.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/widgets/ProgressDialog.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/ProgressDialog.java diff --git a/MaterialDesign/src/com/gc/materialdesign/widgets/SnackBar.java b/MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/SnackBar.java similarity index 100% rename from MaterialDesign/src/com/gc/materialdesign/widgets/SnackBar.java rename to MaterialDesignLibrary/MaterialDesign/src/main/java/com/gc/materialdesign/widgets/SnackBar.java diff --git a/MaterialDesign/res/anim/dialog_main_hide_amination.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_main_hide_amination.xml similarity index 100% rename from MaterialDesign/res/anim/dialog_main_hide_amination.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_main_hide_amination.xml diff --git a/MaterialDesign/res/anim/dialog_main_show_amination.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_main_show_amination.xml similarity index 100% rename from MaterialDesign/res/anim/dialog_main_show_amination.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_main_show_amination.xml diff --git a/MaterialDesign/res/anim/dialog_root_hide_amin.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_root_hide_amin.xml similarity index 100% rename from MaterialDesign/res/anim/dialog_root_hide_amin.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_root_hide_amin.xml diff --git a/MaterialDesign/res/anim/dialog_root_show_amin.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_root_show_amin.xml similarity index 100% rename from MaterialDesign/res/anim/dialog_root_show_amin.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/dialog_root_show_amin.xml diff --git a/MaterialDesign/res/anim/progress_indeterminate_animation.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/progress_indeterminate_animation.xml similarity index 100% rename from MaterialDesign/res/anim/progress_indeterminate_animation.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/progress_indeterminate_animation.xml diff --git a/MaterialDesign/res/anim/snackbar_hide_animation.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/snackbar_hide_animation.xml similarity index 100% rename from MaterialDesign/res/anim/snackbar_hide_animation.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/snackbar_hide_animation.xml diff --git a/MaterialDesign/res/anim/snackbar_show_animation.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/anim/snackbar_show_animation.xml similarity index 100% rename from MaterialDesign/res/anim/snackbar_show_animation.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/anim/snackbar_show_animation.xml diff --git a/MaterialDesign/assets/sprite_check.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-hdpi/sprite_check.png similarity index 100% rename from MaterialDesign/assets/sprite_check.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-hdpi/sprite_check.png diff --git a/MaterialDesign/res/drawable-hdpi/sprite_check.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-ldpi/sprite_check.png similarity index 100% rename from MaterialDesign/res/drawable-hdpi/sprite_check.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-ldpi/sprite_check.png diff --git a/MaterialDesign/res/drawable-ldpi/sprite_check.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-mdpi/sprite_check.png similarity index 100% rename from MaterialDesign/res/drawable-ldpi/sprite_check.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-mdpi/sprite_check.png diff --git a/MaterialDesign/res/drawable-xhdpi/dialog_background.9.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/dialog_background.9.png similarity index 100% rename from MaterialDesign/res/drawable-xhdpi/dialog_background.9.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/dialog_background.9.png diff --git a/MaterialDesign/res/drawable-xhdpi/float_button1_shadowp.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/float_button1_shadowp.png similarity index 100% rename from MaterialDesign/res/drawable-xhdpi/float_button1_shadowp.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/float_button1_shadowp.png diff --git a/MaterialDesign/res/drawable-xhdpi/float_button_shadow1.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/float_button_shadow1.png similarity index 100% rename from MaterialDesign/res/drawable-xhdpi/float_button_shadow1.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/float_button_shadow1.png diff --git a/MaterialDesign/res/drawable-xhdpi/ic_reloj_max.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/ic_reloj_max.png similarity index 100% rename from MaterialDesign/res/drawable-xhdpi/ic_reloj_max.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/ic_reloj_max.png diff --git a/MaterialDesign/res/drawable-mdpi/sprite_check.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/sprite_check.png similarity index 100% rename from MaterialDesign/res/drawable-mdpi/sprite_check.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xhdpi/sprite_check.png diff --git a/MaterialDesign/res/drawable-xhdpi/sprite_check.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xxhdpi/sprite_check.png similarity index 100% rename from MaterialDesign/res/drawable-xhdpi/sprite_check.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable-xxhdpi/sprite_check.png diff --git a/MaterialDesign/res/drawable/background_button.9.png b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button.9.png similarity index 100% rename from MaterialDesign/res/drawable/background_button.9.png rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button.9.png diff --git a/MaterialDesign/res/drawable/background_button_float.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button_float.xml similarity index 100% rename from MaterialDesign/res/drawable/background_button_float.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button_float.xml diff --git a/MaterialDesign/res/drawable/background_button_rectangle.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button_rectangle.xml similarity index 100% rename from MaterialDesign/res/drawable/background_button_rectangle.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_button_rectangle.xml diff --git a/MaterialDesign/res/drawable/background_checkbox.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox.xml similarity index 100% rename from MaterialDesign/res/drawable/background_checkbox.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox.xml diff --git a/MaterialDesign/res/drawable/background_checkbox_check.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox_check.xml similarity index 100% rename from MaterialDesign/res/drawable/background_checkbox_check.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox_check.xml diff --git a/MaterialDesign/res/drawable/background_checkbox_uncheck.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox_uncheck.xml similarity index 100% rename from MaterialDesign/res/drawable/background_checkbox_uncheck.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_checkbox_uncheck.xml diff --git a/MaterialDesign/res/drawable/background_progress.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_progress.xml similarity index 100% rename from MaterialDesign/res/drawable/background_progress.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_progress.xml diff --git a/MaterialDesign/res/drawable/background_switch_ball_uncheck.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_switch_ball_uncheck.xml similarity index 100% rename from MaterialDesign/res/drawable/background_switch_ball_uncheck.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_switch_ball_uncheck.xml diff --git a/MaterialDesign/res/drawable/background_transparent.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_transparent.xml similarity index 100% rename from MaterialDesign/res/drawable/background_transparent.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/background_transparent.xml diff --git a/MaterialDesign/res/drawable/shadow_down.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/shadow_down.xml similarity index 100% rename from MaterialDesign/res/drawable/shadow_down.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/shadow_down.xml diff --git a/MaterialDesign/res/drawable/shadow_right.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/shadow_right.xml similarity index 100% rename from MaterialDesign/res/drawable/shadow_right.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/drawable/shadow_right.xml diff --git a/MaterialDesign/res/layout/color_selector.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/layout/color_selector.xml similarity index 100% rename from MaterialDesign/res/layout/color_selector.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/layout/color_selector.xml diff --git a/MaterialDesign/res/layout/dialog.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/layout/dialog.xml similarity index 100% rename from MaterialDesign/res/layout/dialog.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/layout/dialog.xml diff --git a/MaterialDesign/res/layout/number_indicator_spinner.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/layout/number_indicator_spinner.xml similarity index 100% rename from MaterialDesign/res/layout/number_indicator_spinner.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/layout/number_indicator_spinner.xml diff --git a/MaterialDesign/res/layout/progress_dialog.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/layout/progress_dialog.xml similarity index 100% rename from MaterialDesign/res/layout/progress_dialog.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/layout/progress_dialog.xml diff --git a/MaterialDesign/res/layout/snackbar.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/layout/snackbar.xml similarity index 100% rename from MaterialDesign/res/layout/snackbar.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/layout/snackbar.xml diff --git a/MaterialDesign/res/values/attributes.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/values/attributes.xml similarity index 97% rename from MaterialDesign/res/values/attributes.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/values/attributes.xml index b123eef..95a6502 100644 --- a/MaterialDesign/res/values/attributes.xml +++ b/MaterialDesignLibrary/MaterialDesign/src/main/res/values/attributes.xml @@ -1,37 +1,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MaterialDesign/res/values/colors.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/values/colors.xml similarity index 100% rename from MaterialDesign/res/values/colors.xml rename to MaterialDesignLibrary/MaterialDesign/src/main/res/values/colors.xml diff --git a/MaterialDesignLibrary/MaterialDesign/src/main/res/values/strings.xml b/MaterialDesignLibrary/MaterialDesign/src/main/res/values/strings.xml new file mode 100644 index 0000000..e933cbd --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesign/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + MaterialDesign + diff --git a/MaterialDesignLibrary/MaterialDesignDemo/.gitignore b/MaterialDesignLibrary/MaterialDesignDemo/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesignDemo/.gitignore @@ -0,0 +1 @@ +/build diff --git a/MaterialDesignLibrary/MaterialDesignDemo/build.gradle b/MaterialDesignLibrary/MaterialDesignDemo/build.gradle new file mode 100644 index 0000000..7b62a2e --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesignDemo/build.gradle @@ -0,0 +1,26 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 22 + buildToolsVersion "22.0.1" + + defaultConfig { + applicationId "com.gc.materialdesigndemo" + minSdkVersion 16 + 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 project(':MaterialDesign') +} diff --git a/MaterialDesignDemo/proguard-project.txt b/MaterialDesignLibrary/MaterialDesignDemo/proguard-rules.pro similarity index 62% rename from MaterialDesignDemo/proguard-project.txt rename to MaterialDesignLibrary/MaterialDesignDemo/proguard-rules.pro index f2fe155..2589703 100644 --- a/MaterialDesignDemo/proguard-project.txt +++ b/MaterialDesignLibrary/MaterialDesignDemo/proguard-rules.pro @@ -1,11 +1,8 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. +# in /Applications/adt-bundle-mac-x86_64-20140321/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 diff --git a/MaterialDesignLibrary/MaterialDesignDemo/src/androidTest/java/com/gc/materialdesigndemo/ApplicationTest.java b/MaterialDesignLibrary/MaterialDesignDemo/src/androidTest/java/com/gc/materialdesigndemo/ApplicationTest.java new file mode 100644 index 0000000..beea5ad --- /dev/null +++ b/MaterialDesignLibrary/MaterialDesignDemo/src/androidTest/java/com/gc/materialdesigndemo/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.gc.materialdesigndemo; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/MaterialDesignDemo/bin/AndroidManifest.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/AndroidManifest.xml similarity index 77% rename from MaterialDesignDemo/bin/AndroidManifest.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/AndroidManifest.xml index 60bbfbd..fb9efe1 100644 --- a/MaterialDesignDemo/bin/AndroidManifest.xml +++ b/MaterialDesignLibrary/MaterialDesignDemo/src/main/AndroidManifest.xml @@ -1,17 +1,9 @@ + package="com.gc.materialdesigndemo"> - + - + - \ No newline at end of file + diff --git a/MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/ButtonsActivity.java b/MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/ButtonsActivity.java similarity index 100% rename from MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/ButtonsActivity.java rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/ButtonsActivity.java diff --git a/MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/MainActivity.java b/MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/MainActivity.java similarity index 100% rename from MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/MainActivity.java rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/MainActivity.java diff --git a/MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/ProgressActivity.java b/MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/ProgressActivity.java similarity index 100% rename from MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/ProgressActivity.java rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/ProgressActivity.java diff --git a/MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/SwitchActivity.java b/MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/SwitchActivity.java similarity index 100% rename from MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/SwitchActivity.java rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/SwitchActivity.java diff --git a/MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/WidgetActivity.java b/MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/WidgetActivity.java similarity index 100% rename from MaterialDesignDemo/src/com/gc/materialdesigndemo/ui/WidgetActivity.java rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/java/com/gc/materialdesigndemo/ui/WidgetActivity.java diff --git a/MaterialDesignDemo/res/drawable-xhdpi/ic_action_new.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/ic_action_new.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/ic_action_new.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/ic_action_new.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/ic_next.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/ic_next.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/ic_next.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/ic_next.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/icn_button.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_button.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/icn_button.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_button.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/icn_progress.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_progress.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/icn_progress.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_progress.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/icn_select_color.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_select_color.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/icn_select_color.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_select_color.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/icn_switch.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_switch.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/icn_switch.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_switch.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/icn_widget.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_widget.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/icn_widget.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable-xhdpi/icn_widget.png diff --git a/MaterialDesignDemo/res/drawable/blue_background.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/blue_background.xml similarity index 100% rename from MaterialDesignDemo/res/drawable/blue_background.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/blue_background.xml diff --git a/MaterialDesignDemo/res/drawable/selector_list.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/selector_list.xml similarity index 100% rename from MaterialDesignDemo/res/drawable/selector_list.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/selector_list.xml diff --git a/MaterialDesignDemo/res/drawable/transparent_backgrouns.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/transparent_backgrouns.xml similarity index 100% rename from MaterialDesignDemo/res/drawable/transparent_backgrouns.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/drawable/transparent_backgrouns.xml diff --git a/MaterialDesignDemo/res/layout/activity_buttons.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_buttons.xml similarity index 100% rename from MaterialDesignDemo/res/layout/activity_buttons.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_buttons.xml diff --git a/MaterialDesignDemo/res/layout/activity_main.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_main.xml similarity index 100% rename from MaterialDesignDemo/res/layout/activity_main.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_main.xml diff --git a/MaterialDesignDemo/res/layout/activity_progress.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_progress.xml similarity index 100% rename from MaterialDesignDemo/res/layout/activity_progress.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_progress.xml diff --git a/MaterialDesignDemo/res/layout/activity_switchs.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_switchs.xml similarity index 97% rename from MaterialDesignDemo/res/layout/activity_switchs.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_switchs.xml index 5e4e40d..3d95ca7 100644 --- a/MaterialDesignDemo/res/layout/activity_switchs.xml +++ b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_switchs.xml @@ -40,7 +40,7 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="#1E88E5" - materialdesign:checked="true" /> + materialdesign:check="true" /> @@ -72,7 +72,7 @@ android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="#1E88E5" - materialdesign:checked="true" /> + materialdesign:check="true" /> diff --git a/MaterialDesignDemo/res/layout/activity_widgets.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_widgets.xml similarity index 100% rename from MaterialDesignDemo/res/layout/activity_widgets.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/layout/activity_widgets.xml diff --git a/MaterialDesignDemo/res/drawable-hdpi/ic_launcher.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from MaterialDesignDemo/res/drawable-hdpi/ic_launcher.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/MaterialDesignDemo/res/drawable-mdpi/ic_launcher.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from MaterialDesignDemo/res/drawable-mdpi/ic_launcher.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/MaterialDesignDemo/res/drawable-xhdpi/ic_launcher.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from MaterialDesignDemo/res/drawable-xhdpi/ic_launcher.png rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d71c800 Binary files /dev/null and b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/MaterialDesignDemo/res/values/strings.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/values/strings.xml similarity index 100% rename from MaterialDesignDemo/res/values/strings.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/values/strings.xml diff --git a/MaterialDesignDemo/res/values/styles.xml b/MaterialDesignLibrary/MaterialDesignDemo/src/main/res/values/styles.xml similarity index 100% rename from MaterialDesignDemo/res/values/styles.xml rename to MaterialDesignLibrary/MaterialDesignDemo/src/main/res/values/styles.xml diff --git a/build.gradle b/MaterialDesignLibrary/build.gradle similarity index 54% rename from build.gradle rename to MaterialDesignLibrary/build.gradle index 5385ff5..7a979d7 100644 --- a/build.gradle +++ b/MaterialDesignLibrary/build.gradle @@ -6,9 +6,10 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.+' - classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5' - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' - classpath 'com.github.dcendents:android-maven-plugin:1.2' +// COMMENT TO DEVELOPER MODE / UNCOMMENT TO UPLOAD TO BINTARRAY +// classpath 'org.codehaus.groovy:groovy-backports-compat23:2.3.5' +// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' +// classpath 'com.github.dcendents:android-maven-plugin:1.2' } } @@ -19,6 +20,6 @@ allprojects { } group = "com.github.navasmdc" - version = "1.4" + version = "1.5" } diff --git a/gradle.properties b/MaterialDesignLibrary/gradle.properties similarity index 100% rename from gradle.properties rename to MaterialDesignLibrary/gradle.properties diff --git a/gradle/wrapper/gradle-wrapper.jar b/MaterialDesignLibrary/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from gradle/wrapper/gradle-wrapper.jar rename to MaterialDesignLibrary/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle/wrapper/gradle-wrapper.properties b/MaterialDesignLibrary/gradle/wrapper/gradle-wrapper.properties similarity index 80% rename from gradle/wrapper/gradle-wrapper.properties rename to MaterialDesignLibrary/gradle/wrapper/gradle-wrapper.properties index 0c71e76..707f4c9 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/MaterialDesignLibrary/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Apr 10 15:27:10 PDT 2013 +#Sat Aug 22 18:02:59 CEST 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip diff --git a/gradlew b/MaterialDesignLibrary/gradlew similarity index 100% rename from gradlew rename to MaterialDesignLibrary/gradlew diff --git a/gradlew.bat b/MaterialDesignLibrary/gradlew.bat similarity index 96% rename from gradlew.bat rename to MaterialDesignLibrary/gradlew.bat index aec9973..8a0b282 100644 --- a/gradlew.bat +++ b/MaterialDesignLibrary/gradlew.bat @@ -1,90 +1,90 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/MaterialDesignLibrary/settings.gradle b/MaterialDesignLibrary/settings.gradle new file mode 100644 index 0000000..19915f6 --- /dev/null +++ b/MaterialDesignLibrary/settings.gradle @@ -0,0 +1,4 @@ +// DEVELOPER MODE +include ':MaterialDesignDemo', ':MaterialDesign' +// UPLOAd LIBRARY TO BINTARRAY +//include ':MaterialDesign' diff --git a/README.md b/README.md index 4a78421..f0ef644 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ repositories { } dependencies { - compile 'com.github.navasmdc:MaterialDesign:1.+@aar' + compile 'com.github.navasmdc:MaterialDesign:1.5@aar' } ``` diff --git a/images/body-bg.jpg b/images/body-bg.jpg new file mode 100644 index 0000000..719fb88 Binary files /dev/null and b/images/body-bg.jpg differ diff --git a/images/download-button.png b/images/download-button.png new file mode 100644 index 0000000..c5ffb3a Binary files /dev/null and b/images/download-button.png differ diff --git a/images/github-button.png b/images/github-button.png new file mode 100644 index 0000000..cd41580 Binary files /dev/null and b/images/github-button.png differ diff --git a/images/header-bg.jpg b/images/header-bg.jpg new file mode 100644 index 0000000..d16497a Binary files /dev/null and b/images/header-bg.jpg differ diff --git a/images/highlight-bg.jpg b/images/highlight-bg.jpg new file mode 100644 index 0000000..355e089 Binary files /dev/null and b/images/highlight-bg.jpg differ diff --git a/images/sidebar-bg.jpg b/images/sidebar-bg.jpg new file mode 100644 index 0000000..536ead9 Binary files /dev/null and b/images/sidebar-bg.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..bfd644d --- /dev/null +++ b/index.html @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + Materialdesignlibrary by navasmdc + + + +

+
+

Materialdesignlibrary

+

This is a library with components of Android L to you use in android 2.2

+ View project on GitHub +
+
+ +
+
+
+

Material design library logo

+ +

+Material Design Android Library

+ +

+ Android app on Google Play +

+ +

Android Arsenal

+ + + +

+How to use

+ +

If you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.

+ +

If you prefer it, you can use the gradle dependency, you have to add these lines in your build.gradle file:

+ +
repositories {
+    jcenter()
+}
+
+dependencies {
+    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
+}
+ +

Some components have custom attributes, if you want use them, you must add this line in your xml file in the first component:

+ +
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    >
+</RelativeLayout>
+ +
+

If you are going to use a ScrollView, it is recommended that you use the CustomScrollView provided in this library to avoid problems with the custom components. +To use this component:

+ +
<com.gc.materialdesign.views.ScrollView 
+   xmlns:android="http://schemas.android.com/apk/res/android"
+   xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
+   android:id="@+id/scroll"
+   android:layout_width="match_parent"
+   android:layout_height="match_parent">
+</com.gc.materialdesign.views.ScrollView>
+
+ +

+Components

+ +

+Buttons

+ +
+Flat Button
+ +

flat button

+ +
<com.gc.materialdesign.views.ButtonFlat
+                android:id="@+id/buttonflat"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                android:text="Button" />
+ +
+Rectangle Button
+ +

rectangle button

+ +
<com.gc.materialdesign.views.ButtonRectangle
+                android:id="@+id/button"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                android:text="Button" />
+ +
+Float Button
+ +

float button

+ +
+

It is recommended to put this component in the right-bottom of the screen. To use this component write this code in your xml file. +If you don`t want to start this component with animation set the animate attribute to false. +Put your icon in the icon attribute to set the drawable icon for this component.

+
+ +
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    >
+    <!-- ... XML CODE -->
+    <com.gc.materialdesign.views.ButtonFloat
+                android:id="@+id/buttonFloat"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_alignParentRight="true"
+                android:layout_alignParentBottom="true"
+                android:layout_marginRight="24dp"
+                android:background="#1E88E5"
+                materialdesign:animate="true"
+                materialdesign:iconDrawable="@drawable/ic_action_new" />
+</RelativeLayout>
+ +
+Float small button
+ +

float small button

+ +
<com.gc.materialdesign.views.ButtonFloatSmall
+                android:id="@+id/buttonFloatSmall"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                materialdesign:iconDrawable="@drawable/ic_action_new" />
+ +

+Switches

+ +
+CheckBox
+ +

checkbox

+ +
<com.gc.materialdesign.views.CheckBox
+                android:id="@+id/checkBox"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                materialdesign:check="true" />
+ +
+Switch
+ +

switch

+ +
<com.gc.materialdesign.views.Switch
+                android:id="@+id/switchView"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                materialdesign:check="true" />
+ +

+Progress indicators

+ +
+Progress bar circular indeterminate
+ +

progress bar circular indeterminate

+ +
<com.gc.materialdesign.views.ProgressBarCircularIndeterminate
+                android:id="@+id/progressBarCircularIndeterminate"
+                android:layout_width="32dp"
+                android:layout_height="32dp"
+                android:background="#1E88E5" />
+ +
+Progress bar indeterminate
+ +

progress bar indeterminate

+ +
<com.gc.materialdesign.views.ProgressBarIndeterminate
+                android:id="@+id/progressBarIndeterminate"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5" />
+ +
+Progress bar indeterminate determinate
+ +

Progress bar indeterminate determinate

+ +
<com.gc.materialdesign.views.ProgressBarIndeterminateDeterminate
+                android:id="@+id/progressBarIndeterminateDeterminate"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5" />
+ +
+

If you begin progrees, you only have to set progress it

+ +
progressBarIndeterminateDeterminate.setProgress(progress);
+
+ +
+Progress bar determinate
+ +

Progress bar determinate

+ +
<com.gc.materialdesign.views.ProgressBarDeterminate
+                android:id="@+id/progressDeterminate"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5" />
+ +
+

You can custom max and min progress values with materialdesign:max="50" and materialdesign:min="25" attributes.

+
+ +
+Slider
+ +

Slider

+ +
<com.gc.materialdesign.views.Slider
+                android:id="@+id/slider"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                materialdesign:max="50"
+                materialdesign:min="0"
+                 />
+ +
+Slider with number indicator
+ +

Slider with number indicator

+ +
<com.gc.materialdesign.views.Slider
+                android:id="@+id/slider"
+                android:layout_width="fill_parent"
+                android:layout_height="wrap_content"
+                android:background="#1E88E5"
+                materialdesign:max="50"
+                materialdesign:min="0"
+                materialdesign:showNumberIndicator="true"/>
+ +

+Widgets

+ +

+SnackBar

+ +

Snackbar

+ +
SnackBar snackbar = new SnackBar(Activity activity, String text, String buttonText, View.OnClickListener onClickListener);
+snackbar.show();
+ +
+

If you don't want to show the button, put null in buttonText attribute

+
+ +

+Dialog

+ +

Dialog

+ +
Dialog dialog = new Dialog(Context context,String title, String message);
+dialog.show();
+ +
+

You can set the accept and cancel button on the event listener or change it's text

+ +
// Set accept click listenner
+dialog.setOnAcceptButtonClickListener(View.OnClickListener onAcceptButtonClickListener);
+// Set cancel click listenner
+dialog.setOnCancelButtonClickListener(View.OnClickListener onCancelButtonClickListener);
+// Acces to accept button
+ButtonFlat acceptButton = dialog.getButtonAccept();
+// Acces to cancel button
+ButtonFlat cancelButton = dialog.getButtonCancel();
+
+ +

+Color selector

+ +

Color selector

+ +
ColorSelector colorSelector = new ColorSelector(Context context,int intialColor, OnColorSelectedListener onColorSelectedListener);
+colorSelector.show();
+
+ + +
+
+ + + + diff --git a/javascripts/main.js b/javascripts/main.js new file mode 100644 index 0000000..d8135d3 --- /dev/null +++ b/javascripts/main.js @@ -0,0 +1 @@ +console.log('This would be the main JS file.'); diff --git a/params.json b/params.json new file mode 100644 index 0000000..c9671de --- /dev/null +++ b/params.json @@ -0,0 +1,6 @@ +{ + "name": "Materialdesignlibrary", + "tagline": "This is a library with components of Android L to you use in android 2.2", + "body": "![Material design library logo](images/logo.png)\r\n\r\n# Material Design Android Library\r\n\r\n\r\n \"Android\r\n\r\n\r\n\r\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Material%20Design%20Android%20Library-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1156)\r\n\r\n* [How to use](#howtouse)\r\n* [Components](#components)\r\n * [Buttons](#buttons)\r\n * [Flat Button](#flat-button)\r\n * [Rectangle Button](#rectangle-button)\r\n * [Float Button](#float-button)\r\n * [Float small button](#float-small-button)\r\n * [Switches](#switches)\r\n * [CheckBox](#checkbox)\r\n * [Switch](#switch)\r\n * [Progress indicators](#progress-indicators)\r\n * [Progress bar circular indeterminate](#progress-bar-circula-rindeterminate)\r\n * [Progress bar indeterminate](#progress-bar-indeterminate)\r\n * [Progress bar indeterminate determinate](#progress-bar-indeterminate-determinate)\r\n * [Progress bar determinate](#progress-bar-determinate)\r\n * [Slider](#slider)\r\n * [Slider with number indicator](#slider-with-number-indicator)\r\n* [Widgets](#widgets)\r\n * [SnackBar](#snackbar)\r\n * [Dialog](#dialog)\r\n * [Color selector](#color-selector)\r\n\r\n## How to use\r\n\r\nIf you want use this library, you only have to download MaterialDesign project, import it into your workspace and add the project as a library in your android project settings.\r\n\r\nIf you prefer it, you can use the gradle dependency, you have to add these lines in your build.gradle file:\r\n\r\n```xml\r\nrepositories {\r\n jcenter()\r\n}\r\n\r\ndependencies {\r\n compile 'com.github.navasmdc:MaterialDesign:1.5@aar'\r\n}\r\n```\r\n\r\nSome components have custom attributes, if you want use them, you must add this line in your xml file in the first component:\r\n\r\n```xml\r\n\r\n\r\n```\r\n\r\n>If you are going to use a ScrollView, it is recommended that you use the CustomScrollView provided in this library to avoid problems with the custom components.\r\n>To use this component:\r\n>```xml\r\n> xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n> xmlns:materialdesign=\"http://schemas.android.com/apk/res-auto\"\r\n> android:id=\"@+id/scroll\"\r\n> android:layout_width=\"match_parent\"\r\n> android:layout_height=\"match_parent\">\r\n>\r\n>```\r\n\r\n##Components\r\n\r\n####Buttons\r\n\r\n######Flat Button\r\n\r\n![flat button](images/flat_button.png)\r\n```xml\r\n\r\n```\r\n\r\n######Rectangle Button\r\n\r\n![rectangle button](images/rectangle_button.png)\r\n```xml\r\n\r\n```\r\n\r\n######Float Button\r\n\r\n![float button](images/float_button.png)\r\n\r\n>It is recommended to put this component in the right-bottom of the screen. To use this component write this code in your xml file.\r\n>If you don`t want to start this component with animation set the animate attribute to false.\r\n>Put your icon in the icon attribute to set the drawable icon for this component.\r\n\r\n```xml\r\n\r\n \r\n \r\n\r\n```\r\n\r\n######Float small button\r\n\r\n![float small button](images/float_small_button.png)\r\n\r\n```xml\r\n\r\n```\r\n\r\n####Switches\r\n\r\n######CheckBox\r\n![checkbox](images/checkbox.png)\r\n\r\n```xml\r\n\r\n```\r\n\r\n######Switch\r\n![switch](images/switch.png)\r\n\r\n```xml\r\n\r\n```\r\n\r\n####Progress indicators\r\n\r\n######Progress bar circular indeterminate\r\n![progress bar circular indeterminate](images/progress_bar_circular_indeterminate.png)\r\n\r\n```xml\r\n\r\n```\r\n\r\n######Progress bar indeterminate\r\n![progress bar indeterminate](images/progress_bar_indeterminate.png)\r\n\r\n```xml\r\n\r\n```\r\n\r\n######Progress bar indeterminate determinate\r\n![Progress bar indeterminate determinate](images/progress_bar_indeterminate_determinate.png)\r\n\r\n\r\n```xml\r\n\r\n```\r\n\r\n>If you begin progrees, you only have to set progress it\r\n>\r\n>```java\r\n>progressBarIndeterminateDeterminate.setProgress(progress);\r\n>```\r\n\r\n######Progress bar determinate\r\n![Progress bar determinate](images/progress_bar_determinate.png)\r\n\r\n\r\n```xml\r\n\r\n```\r\n\r\n>You can custom max and min progress values with `materialdesign:max=\"50\"` and `materialdesign:min=\"25\"` attributes.\r\n\r\n######Slider\r\n![Slider](images/slider.png)\r\n\r\n\r\n```xml\r\n\r\n```\r\n\r\n######Slider with number indicator\r\n![Slider with number indicator](images/slider_with_number_indicator.png)\r\n\r\n\r\n```xml\r\n\r\n```\r\n\r\n##Widgets\r\n\r\n####SnackBar\r\n\r\n![Snackbar](images/snackbar.png)\r\n\r\n\r\n```java\r\nSnackBar snackbar = new SnackBar(Activity activity, String text, String buttonText, View.OnClickListener onClickListener);\r\nsnackbar.show();\r\n```\r\n\r\n> If you don't want to show the button, put `null` in `buttonText` attribute\r\n\r\n####Dialog\r\n\r\n![Dialog](images/dialog.png)\r\n\r\n```java\r\nDialog dialog = new Dialog(Context context,String title, String message);\r\ndialog.show();\r\n```\r\n\r\n>You can set the accept and cancel button on the event listener or change it's text\r\n>```java\r\n> // Set accept click listenner\r\n>dialog.setOnAcceptButtonClickListener(View.OnClickListener onAcceptButtonClickListener);\r\n> // Set cancel click listenner\r\n>dialog.setOnCancelButtonClickListener(View.OnClickListener onCancelButtonClickListener);\r\n> // Acces to accept button\r\n>ButtonFlat acceptButton = dialog.getButtonAccept();\r\n> // Acces to cancel button\r\n>ButtonFlat cancelButton = dialog.getButtonCancel();\r\n>```\r\n\r\n####Color selector\r\n\r\n![Color selector](images/color_selector.png)\r\n\r\n```java\r\nColorSelector colorSelector = new ColorSelector(Context context,int intialColor, OnColorSelectedListener onColorSelectedListener);\r\ncolorSelector.show();\r\n```\r\n\r\n\r\n\r\n\r\n\r\n", + "note": "Don't delete this file! It's used internally to help with page regeneration." +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index fd4bab1..0000000 --- a/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':MaterialDesign' diff --git a/stylesheets/github-light.css b/stylesheets/github-light.css new file mode 100644 index 0000000..0c6b24d --- /dev/null +++ b/stylesheets/github-light.css @@ -0,0 +1,124 @@ +/* +The MIT License (MIT) + +Copyright (c) 2016 GitHub, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + +.pl-c /* comment */ { + color: #969896; +} + +.pl-c1 /* constant, variable.other.constant, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header */, +.pl-s .pl-v /* string variable */ { + color: #0086b3; +} + +.pl-e /* entity */, +.pl-en /* entity.name */ { + color: #795da3; +} + +.pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */, +.pl-s .pl-s1 /* string source */ { + color: #333; +} + +.pl-ent /* entity.name.tag */ { + color: #63a35c; +} + +.pl-k /* keyword, storage, storage.type */ { + color: #a71d5d; +} + +.pl-s /* string */, +.pl-pds /* punctuation.definition.string, string.regexp.character-class */, +.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, +.pl-sr /* string.regexp */, +.pl-sr .pl-cce /* string.regexp constant.character.escape */, +.pl-sr .pl-sre /* string.regexp source.ruby.embedded */, +.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ { + color: #183691; +} + +.pl-v /* variable */ { + color: #ed6a43; +} + +.pl-id /* invalid.deprecated */ { + color: #b52a1d; +} + +.pl-ii /* invalid.illegal */ { + color: #f8f8f8; + background-color: #b52a1d; +} + +.pl-sr .pl-cce /* string.regexp constant.character.escape */ { + font-weight: bold; + color: #63a35c; +} + +.pl-ml /* markup.list */ { + color: #693a17; +} + +.pl-mh /* markup.heading */, +.pl-mh .pl-en /* markup.heading entity.name */, +.pl-ms /* meta.separator */ { + font-weight: bold; + color: #1d3e81; +} + +.pl-mq /* markup.quote */ { + color: #008080; +} + +.pl-mi /* markup.italic */ { + font-style: italic; + color: #333; +} + +.pl-mb /* markup.bold */ { + font-weight: bold; + color: #333; +} + +.pl-md /* markup.deleted, meta.diff.header.from-file */ { + color: #bd2c00; + background-color: #ffecec; +} + +.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { + color: #55a532; + background-color: #eaffea; +} + +.pl-mdr /* meta.diff.range */ { + font-weight: bold; + color: #795da3; +} + +.pl-mo /* meta.output */ { + color: #1d3e81; +} + diff --git a/stylesheets/print.css b/stylesheets/print.css new file mode 100644 index 0000000..7da6db0 --- /dev/null +++ b/stylesheets/print.css @@ -0,0 +1,228 @@ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + padding: 0; + margin: 0; + font: inherit; + font-size: 100%; + vertical-align: baseline; + border: 0; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-spacing: 0; + border-collapse: collapse; +} +body { + font-family: 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 13px; + line-height: 1.5; + color: #000; +} + +a { + font-weight: bold; + color: #d5000d; +} + +header { + padding-top: 35px; + padding-bottom: 10px; +} + +header h1 { + font-size: 48px; + font-weight: bold; + line-height: 1.2; + color: #303030; + letter-spacing: -1px; +} + +header h2 { + font-size: 24px; + font-weight: normal; + line-height: 1.3; + color: #aaa; + letter-spacing: -1px; +} +#downloads { + display: none; +} +#main_content { + padding-top: 20px; +} + +code, pre { + margin-bottom: 30px; + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal; + font-size: 12px; + color: #222; +} + +code { + padding: 0 3px; +} + +pre { + padding: 20px; + overflow: auto; + border: solid 1px #ddd; +} +pre code { + padding: 0; +} + +ul, ol, dl { + margin-bottom: 20px; +} + + +/* COMMON STYLES */ + +table { + width: 100%; + border: 1px solid #ebebeb; +} + +th { + font-weight: 500; +} + +td { + font-weight: 300; + text-align: center; + border: 1px solid #ebebeb; +} + +form { + padding: 20px; + background: #f2f2f2; + +} + + +/* GENERAL ELEMENT TYPE STYLES */ + +h1 { + font-size: 2.8em; +} + +h2 { + margin-bottom: 8px; + font-size: 22px; + font-weight: bold; + color: #303030; +} + +h3 { + margin-bottom: 8px; + font-size: 18px; + font-weight: bold; + color: #d5000d; +} + +h4 { + font-size: 16px; + font-weight: bold; + color: #303030; +} + +h5 { + font-size: 1em; + color: #303030; +} + +h6 { + font-size: .8em; + color: #303030; +} + +p { + margin-bottom: 20px; + font-weight: 300; +} + +a { + text-decoration: none; +} + +p a { + font-weight: 400; +} + +blockquote { + padding: 0 0 0 30px; + margin-bottom: 20px; + font-size: 1.6em; + border-left: 10px solid #e9e9e9; +} + +ul li { + padding-left: 20px; + list-style-position: inside; + list-style: disc; +} + +ol li { + padding-left: 3px; + list-style-position: inside; + list-style: decimal; +} + +dl dd { + font-style: italic; + font-weight: 100; +} + +footer { + padding-top: 20px; + padding-bottom: 30px; + margin-top: 40px; + font-size: 13px; + color: #aaa; +} + +footer a { + color: #666; +} + +/* MISC */ +.clearfix:after { + display: block; + height: 0; + clear: both; + visibility: hidden; + content: '.'; +} + +.clearfix {display: inline-block;} +* html .clearfix {height: 1%;} +.clearfix {display: block;} diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css new file mode 100644 index 0000000..543c951 --- /dev/null +++ b/stylesheets/stylesheet.css @@ -0,0 +1,881 @@ +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ + +/** + * 1. Set default font family to sans-serif. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ + -ms-text-size-adjust: 100%; /* 2 */ +} + +/** + * Remove default margin. + */ + +body { + margin: 0; +} + +/* HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined for any HTML5 element in IE 8/9. + * Correct `block` display not defined for `details` or `summary` in IE 10/11 + * and Firefox. + * Correct `block` display not defined for `main` in IE 11. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +menu, +nav, +section, +summary { + display: block; +} + +/** + * 1. Correct `inline-block` display not defined in IE 8/9. + * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. + */ + +audio, +canvas, +progress, +video { + display: inline-block; /* 1 */ + vertical-align: baseline; /* 2 */ +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address `[hidden]` styling not present in IE 8/9/10. + * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. + */ + +[hidden], +template { + display: none; +} + +/* Links + ========================================================================== */ + +/** + * Remove the gray background color from active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Address styling not present in IE 8/9/10/11, Safari, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/** + * Address styling not present in Safari and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address variable `h1` font-size and margin within `section` and `article` + * contexts in Firefox 4+, Safari, and Chrome. + */ + +h1 { + margin: 0.67em 0; + font-size: 2em; +} + +/** + * Address styling not present in IE 8/9. + */ + +mark { + color: #000; + background: #ff0; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove border when inside `a` element in IE 8/9/10. + */ + +img { + border: 0; +} + +/** + * Correct overflow not hidden in IE 9/10/11. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* Grouping content + ========================================================================== */ + +/** + * Address margin not present in IE 8/9 and Safari. + */ + +figure { + margin: 1em 40px; +} + +/** + * Address differences between Firefox and other browsers. + */ + +hr { + height: 0; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + +/** + * Contain overflow in all browsers. + */ + +pre { + overflow: auto; +} + +/** + * Address odd `em`-unit font size rendering in all browsers. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +/* Forms + ========================================================================== */ + +/** + * Known limitation: by default, Chrome and Safari on OS X allow very limited + * styling of `select`, unless a `border` property is set. + */ + +/** + * 1. Correct color not being inherited. + * Known issue: affects color of disabled elements. + * 2. Correct font properties not being inherited. + * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. + */ + +button, +input, +optgroup, +select, +textarea { + margin: 0; /* 3 */ + font: inherit; /* 2 */ + color: inherit; /* 1 */ +} + +/** + * Address `overflow` set to `hidden` in IE 8/9/10/11. + */ + +button { + overflow: visible; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. + * Correct `select` style inheritance in Firefox. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * Remove inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + padding: 0; + border: 0; +} + +/** + * Address Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +input { + line-height: normal; +} + +/** + * It's recommended that you don't attempt to style these elements. + * Firefox's implementation doesn't respect box-sizing, padding, or width. + * + * 1. Address box sizing set to `content-box` in IE 8/9/10. + * 2. Remove excess padding in IE 8/9/10. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Fix the cursor style for Chrome's increment/decrement buttons. For certain + * `font-size` values of the `input`, it causes the cursor style of the + * decrement button to change from `default` to `text`. + */ + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-box-sizing: content-box; /* 2 */ + -moz-box-sizing: content-box; + box-sizing: content-box; + -webkit-appearance: textfield; /* 1 */ +} + +/** + * Remove inner padding and search cancel button in Safari and Chrome on OS X. + * Safari (but not Chrome) clips the cancel button when the search input has + * padding (and `textfield` appearance). + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + padding: 0.35em 0.625em 0.75em; + margin: 0 2px; + border: 1px solid #c0c0c0; +} + +/** + * 1. Correct `color` not being inherited in IE 8/9/10/11. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + padding: 0; /* 2 */ + border: 0; /* 1 */ +} + +/** + * Remove default vertical scrollbar in IE 8/9/10/11. + */ + +textarea { + overflow: auto; +} + +/** + * Don't inherit the `font-weight` (applied by a rule above). + * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. + */ + +optgroup { + font-weight: bold; +} + +/* Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-spacing: 0; + border-collapse: collapse; +} + +td, +th { + padding: 0; +} + +/* LAYOUT STYLES */ +body { + font-family: 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 15px; + font-weight: 400; + line-height: 1.5; + color: #666; + background: #fafafa url(../images/body-bg.jpg) 0 0 repeat; +} + +p { + margin-top: 0; +} + +a { + color: #2879d0; +} +a:hover { + color: #2268b2; +} + +header { + padding-top: 40px; + padding-bottom: 40px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + background: #2e7bcf url(../images/header-bg.jpg) 0 0 repeat-x; + border-bottom: solid 1px #275da1; +} + +header h1 { + width: 540px; + margin-top: 0; + margin-bottom: 0.2em; + font-size: 72px; + font-weight: normal; + line-height: 1; + color: #fff; + letter-spacing: -1px; +} + +header h2 { + width: 540px; + margin-top: 0; + margin-bottom: 0; + font-size: 26px; + font-weight: normal; + line-height: 1.3; + color: #9ddcff; + letter-spacing: 0; +} + +.inner { + position: relative; + width: 940px; + margin: 0 auto; +} + +#content-wrapper { + padding-top: 30px; + border-top: solid 1px #fff; +} + +#main-content { + float: left; + width: 690px; +} + +#main-content img { + max-width: 100%; +} + +aside#sidebar { + float: right; + width: 200px; + min-height: 504px; + padding-left: 20px; + font-size: 12px; + line-height: 1.3; + background: transparent url(../images/sidebar-bg.jpg) 0 0 no-repeat; +} + +aside#sidebar p.repo-owner, +aside#sidebar p.repo-owner a { + font-weight: bold; +} + +#downloads { + margin-bottom: 40px; +} + +a.button { + width: 134px; + height: 58px; + padding-top: 22px; + padding-left: 68px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 23px; + line-height: 1.2; + color: #fff; +} +a.button small { + display: block; + font-size: 11px; +} +header a.button { + position: absolute; + top: 0; + right: 0; + background: transparent url(../images/github-button.png) 0 0 no-repeat; +} +aside a.button { + display: block; + width: 138px; + padding-left: 64px; + margin-bottom: 20px; + font-size: 21px; + background: transparent url(../images/download-button.png) 0 0 no-repeat; +} + +code, pre { + margin-bottom: 30px; + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; + font-size: 13px; + color: #222; +} + +code { + padding: 0 3px; + background-color: #f2f8fc; + border: solid 1px #dbe7f3; +} + +pre { + padding: 20px; + overflow: auto; + text-shadow: none; + background: #fff; + border: solid 1px #f2f2f2; +} +pre code { + padding: 0; + color: #2879d0; + background-color: #fff; + border: none; +} + +ul, ol, dl { + margin-bottom: 20px; +} + + +/* COMMON STYLES */ + +hr { + height: 0; + margin-top: 1em; + margin-bottom: 1em; + border: 0; + border-top: solid 1px #ddd; +} + +table { + width: 100%; + border: 1px solid #ebebeb; +} + +th { + font-weight: 500; +} + +td { + font-weight: 300; + text-align: center; + border: 1px solid #ebebeb; +} + +form { + padding: 20px; + background: #f2f2f2; + +} + + +/* GENERAL ELEMENT TYPE STYLES */ + +#main-content h1 { + margin-top: 0; + margin-bottom: 0; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 2.8em; + font-weight: normal; + color: #474747; + text-indent: 6px; + letter-spacing: -1px; +} + +#main-content h1:before { + padding-right: 0.3em; + margin-left: -0.9em; + color: #9ddcff; + content: "/"; +} + +#main-content h2 { + margin-bottom: 8px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 22px; + font-weight: bold; + color: #474747; + text-indent: 4px; +} +#main-content h2:before { + padding-right: 0.3em; + margin-left: -1.5em; + content: "//"; + color: #9ddcff; +} + +#main-content h3 { + margin-top: 24px; + margin-bottom: 8px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 18px; + font-weight: bold; + color: #474747; + text-indent: 3px; +} + +#main-content h3:before { + padding-right: 0.3em; + margin-left: -2em; + content: "///"; + color: #9ddcff; +} + +#main-content h4 { + margin-bottom: 8px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 15px; + font-weight: bold; + color: #474747; + text-indent: 3px; +} + +h4:before { + padding-right: 0.3em; + margin-left: -2.8em; + content: "////"; + color: #9ddcff; +} + +#main-content h5 { + margin-bottom: 8px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: 14px; + color: #474747; + text-indent: 3px; +} +h5:before { + padding-right: 0.3em; + margin-left: -3.2em; + content: "/////"; + color: #9ddcff; +} + +#main-content h6 { + margin-bottom: 8px; + font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; + font-size: .8em; + color: #474747; + text-indent: 3px; +} +h6:before { + padding-right: 0.3em; + margin-left: -3.7em; + content: "//////"; + color: #9ddcff; +} + +p { + margin-bottom: 20px; +} + +a { + text-decoration: none; +} + +p a { + font-weight: 400; +} + +blockquote { + padding: 0 0 0 30px; + margin-bottom: 20px; + font-size: 1.6em; + border-left: 10px solid #e9e9e9; +} + +ul { + list-style-position: inside; + list-style: disc; + padding-left: 20px; +} + +ol { + list-style-position: inside; + list-style: decimal; + padding-left: 3px; +} + +dl dd { + font-style: italic; + font-weight: 100; +} + +footer { + padding-top: 20px; + padding-bottom: 30px; + margin-top: 40px; + font-size: 13px; + color: #aaa; + background: transparent url('../images/hr.png') 0 0 no-repeat; +} + +footer a { + color: #666; +} +footer a:hover { + color: #444; +} + +/* MISC */ +.clearfix:after { + display: block; + height: 0; + clear: both; + visibility: hidden; + content: '.'; +} + +.clearfix {display: inline-block;} +* html .clearfix {height: 1%;} +.clearfix {display: block;} + +/* #Media Queries +================================================== */ + +/* Smaller than standard 960 (devices and browsers) */ +@media only screen and (max-width: 959px) { } + +/* Tablet Portrait size to standard 960 (devices and browsers) */ +@media only screen and (min-width: 768px) and (max-width: 959px) { + .inner { + width: 740px; + } + header h1, header h2 { + width: 340px; + } + header h1 { + font-size: 60px; + } + header h2 { + font-size: 30px; + } + #main-content { + width: 490px; + } + #main-content h1:before, + #main-content h2:before, + #main-content h3:before, + #main-content h4:before, + #main-content h5:before, + #main-content h6:before { + padding-right: 0; + margin-left: 0; + content: none; + } +} + +/* All Mobile Sizes (devices and browser) */ +@media only screen and (max-width: 767px) { + .inner { + width: 93%; + } + header { + padding: 20px 0; + } + header .inner { + position: relative; + } + header h1, header h2 { + width: 100%; + } + header h1 { + font-size: 48px; + } + header h2 { + font-size: 24px; + } + header a.button { + position: relative; + display: inline-block; + width: auto; + height: auto; + padding: 5px 10px; + margin-top: 15px; + font-size: 13px; + line-height: 1; + color: #2879d0; + text-align: center; + background-color: #9ddcff; + background-image: none; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + } + header a.button small { + display: inline; + font-size: 13px; + } + #main-content, + aside#sidebar { + float: none; + width: 100% ! important; + } + aside#sidebar { + min-height: 0; + padding: 20px 0; + margin-top: 20px; + background-image: none; + border-top: solid 1px #ddd; + } + aside#sidebar a.button { + display: none; + } + #main-content h1:before, + #main-content h2:before, + #main-content h3:before, + #main-content h4:before, + #main-content h5:before, + #main-content h6:before { + padding-right: 0; + margin-left: 0; + content: none; + } +} + +/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ +@media only screen and (min-width: 480px) and (max-width: 767px) { } + +/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ +@media only screen and (max-width: 479px) { } +